Skip to content

Commit deb97b6

Browse files
authored
Merge pull request #41 from appwrite/dev
Dev
2 parents 1ca3e22 + 75e6ea3 commit deb97b6

File tree

325 files changed

+5163
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+5163
-473
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite PHP SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
4-
![Version](https://img.shields.io/badge/api%20version-1.6.2-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-1.7.0-blue.svg?style=flat-square&v=1)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9+
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

docs/avatars.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
1616
| code | string | **Required** Browser Code. | |
1717
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
1818
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
19-
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
19+
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality. | -1 |
2020

2121

2222
```http request
@@ -35,7 +35,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
3535
| code | string | **Required** Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay. | |
3636
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
3737
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
38-
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
38+
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality. | -1 |
3939

4040

4141
```http request
@@ -69,7 +69,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
6969
| code | string | **Required** Country Code. ISO Alpha-2 country code format. | |
7070
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
7171
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
72-
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
72+
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality. | -1 |
7373

7474

7575
```http request

docs/databases.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
606606
POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
607607
```
608608

609-
** Create a new Document. 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.
610-
**
609+
** Create a new Document. 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. **
611610

612611
### Parameters
613612

@@ -620,6 +619,68 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
620619
| permissions | array | An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). | |
621620

622621

622+
```http request
623+
POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
624+
```
625+
626+
** 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. **
627+
628+
### Parameters
629+
630+
| Field Name | Type | Description | Default |
631+
| --- | --- | --- | --- |
632+
| databaseId | string | **Required** Database ID. | |
633+
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents. | |
634+
| documents | array | Array of documents data as JSON objects. | [] |
635+
636+
637+
```http request
638+
PUT https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
639+
```
640+
641+
** 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.
642+
**
643+
644+
### Parameters
645+
646+
| Field Name | Type | Description | Default |
647+
| --- | --- | --- | --- |
648+
| databaseId | string | **Required** Database ID. | |
649+
| collectionId | string | **Required** Collection ID. | |
650+
| documents | array | Array of document data as JSON objects. May contain partial documents. | [] |
651+
652+
653+
```http request
654+
PATCH https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
655+
```
656+
657+
** 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. **
658+
659+
### Parameters
660+
661+
| Field Name | Type | Description | Default |
662+
| --- | --- | --- | --- |
663+
| databaseId | string | **Required** Database ID. | |
664+
| collectionId | string | **Required** Collection ID. | |
665+
| data | object | Document data as JSON object. Include only attribute and value pairs to be updated. | {} |
666+
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. | [] |
667+
668+
669+
```http request
670+
DELETE https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
671+
```
672+
673+
** Bulk delete documents using queries, if no queries are passed then all documents are deleted. **
674+
675+
### Parameters
676+
677+
| Field Name | Type | Description | Default |
678+
| --- | --- | --- | --- |
679+
| databaseId | string | **Required** Database ID. | |
680+
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
681+
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. | [] |
682+
683+
623684
```http request
624685
GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}
625686
```
@@ -700,6 +761,7 @@ Attributes can be `key`, `fulltext`, and `unique`. **
700761
| type | string | Index type. | |
701762
| attributes | array | Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long. | |
702763
| orders | array | Array of index orders. Maximum of 100 orders are allowed. | [] |
764+
| lengths | array | Length of index. Maximum of 100 | [] |
703765

704766

705767
```http request

docs/examples/account/create-anonymous-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-email-password-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-email-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-j-w-t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-magic-u-r-l-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticatorType;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>') // Your project ID
1010
->setSession(''); // The user session to authenticate with
1111

docs/examples/account/create-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticationFactor;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
1010

1111
$account = new Account($client);

docs/examples/account/create-mfa-recovery-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-o-auth2token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\OAuthProvider;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
1010

1111
$account = new Account($client);

docs/examples/account/create-phone-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-phone-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/delete-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/delete-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticatorType;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>') // Your project ID
1010
->setSession(''); // The user session to authenticate with
1111

docs/examples/account/delete-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/delete-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-mfa-recovery-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-prefs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-identities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-mfa-factors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-m-f-a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-magic-u-r-l-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

0 commit comments

Comments
 (0)