Skip to content

Commit 52e940f

Browse files
Eldad FuxEldad Fux
authored andcommitted
Initial commit
1 parent 456248e commit 52e940f

File tree

12 files changed

+20
-22
lines changed

12 files changed

+20
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?v=1)
44
![Version](https://img.shields.io/badge/api%20version-0.3.0-blue.svg?v=1)
55

6-
**This SDK is compatible with Appwrite server version 0.3.0. For older versions, please check previous releases.**
6+
**This SDK is compatible with Appwrite server version 0.4.0. For older versions, please check previous releases.**
77

88
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)
99

docs/account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GET https://appwrite.io/v1/account
1414
DELETE https://appwrite.io/v1/account
1515
```
1616

17-
** Delete currently logged in user account. **
17+
** Delete a currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. This is done to avoid deleted accounts being overtaken by new users with the same email address. Any user-related resources like documents or storage files should be deleted separately. **
1818

1919
## Update Account Email
2020

docs/avatars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ GET https://appwrite.io/v1/avatars/image
8181
| width | integer | Resize preview image width, Pass an integer between 0 to 4000 | 400 |
8282
| height | integer | Resize preview image height, Pass an integer between 0 to 4000 | 400 |
8383

84-
## Text to QR Generator
84+
## Get QR Code
8585

8686
```http request
8787
GET https://appwrite.io/v1/avatars/qr

docs/database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
GET https://appwrite.io/v1/database
77
```
88

9-
** Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project collections. [Learn more about different API modes](/docs/modes). **
9+
** Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project collections. [Learn more about different API modes](/docs/admin). **
1010

1111
### Parameters
1212

@@ -86,7 +86,7 @@ DELETE https://appwrite.io/v1/database/{collectionId}
8686
GET https://appwrite.io/v1/database/{collectionId}/documents
8787
```
8888

89-
** Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project documents. [Learn more about different API modes](/docs/modes). **
89+
** Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project documents. [Learn more about different API modes](/docs/admin). **
9090

9191
### Parameters
9292

docs/storage.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
GET https://appwrite.io/v1/storage/files
77
```
88

9-
** Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project files. [Learn more about different API modes](/docs/modes). **
9+
** Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project files. [Learn more about different API modes](/docs/admin). **
1010

1111
### Parameters
1212

@@ -32,7 +32,6 @@ POST https://appwrite.io/v1/storage/files
3232
| files | file | Binary Files. | |
3333
| read | array | An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
3434
| write | array | An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
35-
| folderId | string | Folder to associate files with. | |
3635

3736
## Get File
3837

@@ -63,7 +62,6 @@ PUT https://appwrite.io/v1/storage/files/{fileId}
6362
| fileId | string | **Required** File unique ID. | |
6463
| read | array | An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
6564
| write | array | An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
66-
| folderId | string | Folder to associate files with. | |
6765

6866
## Delete File
6967

docs/teams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
GET https://appwrite.io/v1/teams
77
```
88

9-
** Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project teams. [Learn more about different API modes](/docs/modes). **
9+
** Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project teams. [Learn more about different API modes](/docs/admin). **
1010

1111
### Parameters
1212

src/Appwrite/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Client
3737
*/
3838
protected $headers = [
3939
'content-type' => '',
40-
'x-sdk-version' => 'appwrite:php:1.0.15',
40+
'x-sdk-version' => 'appwrite:php:1.0.16',
4141
];
4242

4343
/**

src/Appwrite/Services/Account.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ public function get():array
3030
/**
3131
* Delete Account
3232
*
33-
* Delete currently logged in user account.
33+
* Delete a currently logged in user account. Behind the scene, the user
34+
* record is not deleted but permanently blocked from any access. This is done
35+
* to avoid deleted accounts being overtaken by new users with the same email
36+
* address. Any user-related resources like documents or storage files should
37+
* be deleted separately.
3438
*
3539
* @throws Exception
3640
* @return array

src/Appwrite/Services/Avatars.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getImage(string $url, int $width = 400, int $height = 400):array
145145
}
146146

147147
/**
148-
* Text to QR Generator
148+
* Get QR Code
149149
*
150150
* Converts a given plain text to a QR code image. You can use the query
151151
* parameters to change the size and style of the resulting image.

src/Appwrite/Services/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Database extends Service
1414
* Get a list of all the user collections. You can use the query params to
1515
* filter your results. On admin mode, this endpoint will return a list of all
1616
* of the project collections. [Learn more about different API
17-
* modes](/docs/modes).
17+
* modes](/docs/admin).
1818
*
1919
* @param string $search
2020
* @param int $limit
@@ -141,7 +141,7 @@ public function deleteCollection(string $collectionId):array
141141
* Get a list of all the user documents. You can use the query params to
142142
* filter your results. On admin mode, this endpoint will return a list of all
143143
* of the project documents. [Learn more about different API
144-
* modes](/docs/modes).
144+
* modes](/docs/admin).
145145
*
146146
* @param string $collectionId
147147
* @param array $filters

0 commit comments

Comments
 (0)