Skip to content

Commit 69c9286

Browse files
committed
chore: regen to 1.7.x
1 parent 6bd335d commit 69c9286

Some content is hidden

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

57 files changed

+86
-4838
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.8.0-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-1.7.4-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.8.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/databases.mdβ€Ž

Lines changed: 53 additions & 50 deletions
Large diffs are not rendered by default.

β€Ždocs/examples/databases/create-document.mdβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setSession('') // The user session to authenticate with
9-
->setKey('<YOUR_API_KEY>') // Your secret API key
10-
->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setSession(''); // The user session to authenticate with
1110

1211
$databases = new Databases($client);
1312

β€Ždocs/examples/databases/create-documents.mdβ€Ž

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

1111
$databases = new Databases($client);

β€Ždocs/examples/databases/upsert-document.mdβ€Ž

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setSession('') // The user session to authenticate with
9-
->setKey('<YOUR_API_KEY>') // Your secret API key
10-
->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setSession(''); // The user session to authenticate with
1110

1211
$databases = new Databases($client);
1312

1413
$result = $databases->upsertDocument(
1514
databaseId: '<DATABASE_ID>',
1615
collectionId: '<COLLECTION_ID>',
17-
documentId: '<DOCUMENT_ID>'
16+
documentId: '<DOCUMENT_ID>',
17+
data: [],
18+
permissions: ["read("any")"] // optional
1819
);

β€Ždocs/examples/databases/upsert-documents.mdβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setAdmin('') //
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setKey('<YOUR_API_KEY>'); // Your secret API key
1010

1111
$databases = new Databases($client);
1212

1313
$result = $databases->upsertDocuments(
1414
databaseId: '<DATABASE_ID>',
15-
collectionId: '<COLLECTION_ID>'
15+
collectionId: '<COLLECTION_ID>',
16+
documents: []
1617
);

β€Ždocs/examples/tables/create-boolean-column.mdβ€Ž

Lines changed: 0 additions & 20 deletions
This file was deleted.

β€Ždocs/examples/tables/create-datetime-column.mdβ€Ž

Lines changed: 0 additions & 20 deletions
This file was deleted.

β€Ždocs/examples/tables/create-email-column.mdβ€Ž

Lines changed: 0 additions & 20 deletions
This file was deleted.

β€Ždocs/examples/tables/create-enum-column.mdβ€Ž

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
Β (0)