From 014ff7861d4e57e9b03ef6c18fac628e6987503d Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Thu, 25 May 2023 18:43:26 +0000 Subject: [PATCH] Fix syntax error in Python examples --- .../docs/getting-started-for-server.phtml | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/app/views/docs/getting-started-for-server.phtml b/app/views/docs/getting-started-for-server.phtml index 6aa12f7b4..a5e1b2c3b 100644 --- a/app/views/docs/getting-started-for-server.phtml +++ b/app/views/docs/getting-started-for-server.phtml @@ -147,9 +147,12 @@ $client = (new Client())
from appwrite.client import Client
 
 client = Client()
+
+client = (client
     .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
     .set_project('[PROJECT_ID]')                # Your project ID
-    .set_key('919c2db5d4...a2a3346ad2'))          # Your secret API key
+    .set_key('919c2db5d4...a2a3346ad2')          # Your secret API key
+)
 
@@ -304,9 +307,11 @@ $client = (new Client())
from appwrite.client import Client
 
 client = Client()
-  .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
-  .set_project('[PROJECT_ID]')                # Your project ID
-  .set_key('919c2db5d4...a2a3346ad2')          # Your secret JWT
+
+client = (client
+    .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
+    .set_project('[PROJECT_ID]')                # Your project ID
+    .set_key('919c2db5d4...a2a3346ad2')          # Your secret API key
 )
 
@@ -578,9 +583,12 @@ from appwrite.id import ID from appwrite.services.users import Users client = Client() - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('[PROJECT_ID]') # Your project ID - .set_key('919c2db5d4...a2a3346ad2')) # Your secret API key + +client = (client + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('[PROJECT_ID]') # Your project ID + .set_key('919c2db5d4...a2a3346ad2') # Your secret API key +) users = Users(client)