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
{{ message }}
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
For further information see the [KWH Glossar](https://www.kwh40.de/glossar/) and the other [Standpunkte](https://www.kwh40.de/veroffentlichungen/).
51
-
52
52
## Usage
53
53
54
54
For a basic example application see the [example](https://github.com/LukasPoque/s3i_flutter/tree/master/example).
55
55
56
-
### Setup Auth
56
+
### Setup authentication
57
57
58
-
Create a `ClientIdentity` used by your app. Please contact the [KWH4.0](https://www.kwh40.de/kontakt/) to get an app specific client.
58
+
First you need to create a `ClientIdentity` used by your app. Please contact the [KWH4.0](https://www.kwh40.de/kontakt/) to get an app specific client.
59
59
```dart
60
60
final clientIdentity = ClientIdentity(<CLIENT-ID>, <CLIENT-SECRET>);
61
61
```
@@ -70,7 +70,7 @@ final authManager = OAuthProxyFlow(clientIdentity,
70
70
scopes: ["group", "offline_access"]);
71
71
```
72
72
73
-
Last but not least you should use this `AuthenticationManager`-Instance to create a `S3ICore`-Instance. Now you could work with the `S3I`.
73
+
Last but not least you should use this `AuthenticationManager`-Instance to create a `S3ICore`-Instance.
74
74
```dart
75
75
final s3i = S3ICore(authManager);
76
76
```
@@ -85,9 +85,11 @@ try {
85
85
}
86
86
````
87
87
88
-
### Send Requests to the directory
88
+
If the `S3ICore`-Instance is ready to use you can now receive and update information from the S3I-Services.
89
89
90
-
If the `S3ICore`-Instance is ready to use you can receive information about a specific thing by calling `getThing()`.
90
+
### Get data from the directory
91
+
92
+
To get data about a specific thing you can simply call `getThing()` on your `S3ICore`-Instance.
91
93
If you don't need the whole thing it's recommended to use a `FieldQuery` so you only receive a part of the entry
92
94
which is faster and safes network data.
93
95
```dart
@@ -98,6 +100,36 @@ try {
98
100
}
99
101
```
100
102
103
+
Similar to this you can request a specific policy from the directory:
0 commit comments