You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,28 +19,39 @@ from xee import Xee
19
19
20
20
xee = Xee(client_id="your_client_id",
21
21
client_secret="your_client_secret",
22
-
redirect_uri="your://redirect:uri")
22
+
redirect_uri="your://redirect:uri",
23
+
scope=(
24
+
AuthScope.VEHICLES_READ,
25
+
AuthScope.VEHICLES_READ_SIGNALS,
26
+
AuthScope.VEHICLES_READ_LOCATIONS,
27
+
AuthScope.VEHICLES_READ_EVENTS,
28
+
AuthScope.VEHICLES_READ_ACCELEROMETERS,
29
+
AuthScope.VEHICLES_READ_DEVICE_DATA,
30
+
AuthScope.ACCOUNT_READ,
31
+
AuthScope.VEHICLES_MANAGEMENT
32
+
)
33
+
)
23
34
```
24
35
25
36
## Using the SDK
26
37
27
38
### Authentication
28
39
29
-
#### Getting the [access code url](https://github.com/xee-lab/xee-api-docs/tree/master/api/api/v3/auth/auth.md)
40
+
#### Getting the [access code url](https://dev.xee.com/v4-openapi/#section/Authentication/Authorization-Code-flow)
30
41
31
42
```python
32
43
login_url = xee.get_authentication_url()
33
44
```
34
45
35
46
> Then show the webpage to the end user, once the process is complete, we'll redirect to `redirect_uri?code={authorization_code}`. Keep this code in mind
36
47
37
-
#### Getting a [token from an `authorization_code`](https://github.com/xee-lab/xee-api-docs/tree/master/api/api/v3/auth/access_token.md)
48
+
#### Getting a [token from an `authorization_code`](https://dev.xee.com/v4-openapi/#section/Authentication/Authorization-Code-flow)
0 commit comments