From 92b14c28b0237b2eff5961bf70be0f52d06b2fb6 Mon Sep 17 00:00:00 2001 From: Marco Bernasocchi Date: Fri, 5 Jul 2024 04:35:25 +0200 Subject: [PATCH] Update sdk as module example --- documentation/reference/qfieldcloud/sdk.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/reference/qfieldcloud/sdk.en.md b/documentation/reference/qfieldcloud/sdk.en.md index 3efedbacd..2e970d7aa 100644 --- a/documentation/reference/qfieldcloud/sdk.en.md +++ b/documentation/reference/qfieldcloud/sdk.en.md @@ -19,13 +19,13 @@ import requests from qfieldcloud_sdk import sdk client = sdk.Client( - url="https://app.qfield.cloud/api/v1/", - username="user1", - password="pass1", + url="https://app.qfield.cloud/api/v1/" ) +client.login(username='me', password='mysecret') try: projects = client.list_projects() + print(projects) except requests.exceptions.RequestException: print("Oops!") ```