Skip to content

Commit fb236b9

Browse files
mariobasuricactus
authored andcommitted
Fix python example in readme
1 parent fb46daa commit fb236b9

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@
99
## Module usage
1010

1111
```
12-
import qfieldcloud_sdk
13-
import requests
12+
from qfieldcloud_sdk import sdk
1413
15-
client = qfieldcloud_sdk.Client(
14+
client = sdk.Client(
1615
url="https://app.qfield.cloud/api/v1/",
1716
username="user1",
1817
password="pass1",
1918
)
2019
21-
try:
22-
projects = client.projects()
23-
except requests.HttpRequest:
24-
print("Oops!")
20+
projects = client.list_projects()
2521
```
2622

2723
## CLI usage

0 commit comments

Comments
 (0)