From cb6e7564a2fb60bc4a92dd5a46dc85b886396e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ondreji=C4=8Dka?= <ondrejickam@infotech.sk> Date: Mon, 30 Aug 2021 14:07:56 +0000 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 46959d5..81a16da 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,14 @@ Rest json/protobuf API for registered twinzo clients and partners provides fully The first thing you need to do is create the base object by which the functionality will be accessible: ```c# ConnectionOptionsBuilder ConnectionOptionsBuilder = new ConnectionOptionsBuilder(); -ConnectionOptions connectionOptions = optionsBuilder\ - .Url("https://twin.rtls.solutions/api")\ - .Client("YourClient")\ - .BranchGuid("YourBranchGuid")\ - .Timeout(1000)\ - .ApiKey("YourApiKey")\ - .Version(ConnectionOptions.VERSION_3)\ - .Build();\ +ConnectionOptions connectionOptions = optionsBuilder + .Url("https://twin.rtls.solutions/api") + .Client("YourClient") + .BranchGuid("YourBranchGuid") + .Timeout(1000) + .ApiKey("YourApiKey") + .Version(ConnectionOptions.VERSION_3) + .Build(); DevkitConnectorV3 devkitConnector = (DevkitConnectorV3) DevkitFactory.CreateDevkitConnector(connectionOptions); ``` @@ -52,7 +52,7 @@ Getting an object by login (if said object's class has `login` property): SensorContract sensor = await devkitConnector.GetSensor("login"); ``` \ -Most of the `GET` functions are able to be further customized to your needs by taking in `queryString` parameter. With this parameter you can specify additional query options (order, limit, expand etc.) according to the [OData standard](https://www.odata.org/documentation/odata-version-3-0/url-conventions/) +Most of the `GET` functions are able to be further customized to your needs by taking in `queryString` parameter. With this parameter you can specify additional query options (order, limit, expand etc.) according to the [OData standard](https://www.odata.org/documentation/odata-version-3-0/url-conventions/).\ Ordering by property: ```c# LayerContract[] layers = await devkitConnector.GetLayers("?$orderby=Updated"); -- GitLab