We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46d8cf7 + a351abe commit 4c52064Copy full SHA for 4c52064
2 files changed
.pre-commit-config.yaml
@@ -28,7 +28,7 @@ repos:
28
29
# Black formatting
30
- repo: https://github.com/psf/black
31
- rev: 20.8b1
+ rev: 22.3.0
32
hooks:
33
- id: black
34
README.md
@@ -9,18 +9,18 @@
9
## Module usage
10
11
```
12
-import qfieldcloud_sdk
13
import requests
+from qfieldcloud_sdk import sdk
14
15
-client = qfieldcloud_sdk.Client(
+client = sdk.Client(
16
url="https://app.qfield.cloud/api/v1/",
17
username="user1",
18
password="pass1",
19
)
20
21
try:
22
- projects = client.projects()
23
-except requests.HttpRequest:
+ projects = client.list_projects()
+except requests.exceptions.RequestException:
24
print("Oops!")
25
26
0 commit comments