You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 1.3.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.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
10
10
11
11
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)
Copy file name to clipboardExpand all lines: docs/account.md
+33-6Lines changed: 33 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
GET https://HOSTNAME/v1/account
7
7
```
8
8
9
-
** Get currently logged in user data as JSON object. **
9
+
** Get the currently logged in user. **
10
10
11
11
## Update Email
12
12
@@ -25,13 +25,41 @@ This endpoint can also be used to convert an anonymous account to a normal one,
25
25
| email | string | User email. ||
26
26
| password | string | User password. Must be at least 8 chars. ||
27
27
28
+
## List Identities
29
+
30
+
```http request
31
+
GET https://HOSTNAME/v1/account/identities
32
+
```
33
+
34
+
** Get the list of identities for the currently logged in user. **
35
+
36
+
### Parameters
37
+
38
+
| Field Name | Type | Description | Default |
39
+
| --- | --- | --- | --- |
40
+
| queries | string | 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. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry |[]|
** Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log. **
62
+
** Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log. **
** Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.
193
-
**
220
+
** Logout the user. Use 'current' as the session ID to logout on this device, use a session ID to logout on another device. If you're looking to logout the user on all devices, use [Delete Sessions](/docs/client/account#accountDeleteSessions) instead. **
Copy file name to clipboardExpand all lines: docs/databases.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,8 @@ POST https://HOSTNAME/v1/databases
29
29
| Field Name | Type | Description | Default |
30
30
| --- | --- | --- | --- |
31
31
| databaseId | string | Unique 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. ||
32
-
| name | string | Collection name. Max length: 128 chars. ||
32
+
| name | string | Database name. Max length: 128 chars. ||
33
+
| enabled | boolean | Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled. | 1 |
33
34
34
35
## Get Database
35
36
@@ -59,6 +60,7 @@ PUT https://HOSTNAME/v1/databases/{databaseId}
| name | string | Database name. Max length: 128 chars. ||
63
+
| enabled | boolean | Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled. | 1 |
62
64
63
65
## Delete Database
64
66
@@ -107,6 +109,7 @@ POST https://HOSTNAME/v1/databases/{databaseId}/collections
107
109
| name | string | Collection name. Max length: 128 chars. ||
108
110
| permissions | array | An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](/docs/permissions). ||
109
111
| documentSecurity | boolean | Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](/docs/permissions). ||
112
+
| enabled | boolean | Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled. | 1 |
110
113
111
114
## Get Collection
112
115
@@ -140,7 +143,7 @@ PUT https://HOSTNAME/v1/databases/{databaseId}/collections/{collectionId}
140
143
| name | string | Collection name. Max length: 128 chars. ||
141
144
| permissions | array | An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions). ||
142
145
| documentSecurity | boolean | Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](/docs/permissions). ||
| enabled | boolean | Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled. | 1 |
144
147
145
148
## Delete Collection
146
149
@@ -169,6 +172,7 @@ GET https://HOSTNAME/v1/databases/{databaseId}/collections/{collectionId}/attrib
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
175
+
| 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. You may filter on the following attributes: key, type, size, required, array, status, error |[]|
POST https://HOSTNAME/v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship
448
452
```
449
453
450
-
** Create relationship attribute. [Learn more about relationship attributes](docs/databases-relationships#relationship-attributes).
454
+
** Create relationship attribute. [Learn more about relationship attributes](/docs/databases-relationships#relationship-attributes).
451
455
**
452
456
453
457
### Parameters
@@ -483,6 +487,7 @@ POST https://HOSTNAME/v1/databases/{databaseId}/collections/{collectionId}/attri
483
487
| required | boolean | Is attribute required? ||
484
488
| default | string | Default value for attribute when not provided. Cannot be set when attribute is required. ||
485
489
| array | boolean | Is attribute an array? ||
490
+
| encrypt | boolean | Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried. ||
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
693
+
| 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. You may filter on the following attributes: key, type, status, attributes, error |[]|
0 commit comments