From 891aaed94b70948f861bf6ddfe49e11d4bffd565 Mon Sep 17 00:00:00 2001 From: Martin Vogel <martin.vogel@sinc.de> Date: Fri, 16 Sep 2022 11:08:14 +0200 Subject: [PATCH] refactor(docu): update readmes --- README.md | 6 +++++- client/README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d385147c5..49c7f48e3 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,11 @@ _The following steps show how to get the SDK running_ ./mvnw clean install -DskipTests ``` 5. Enter your API keys and references to your private decryption key in `config.yml` - +6. Provide config via environment variable ``FIT_CONNECT_CONFIG`` or load the config with + ````java + var config = ApplicationConfigLoader.loadConfig("absolute/path/to/config.yml"); + var senderClient = ClientFactory.senderClient(config); + ```` <p align="right">(<a href="#top">back to top</a>)</p> diff --git a/client/README.md b/client/README.md index 8610bd31a..3ac0cfe37 100644 --- a/client/README.md +++ b/client/README.md @@ -12,7 +12,7 @@ The sdk comes with a commandline client to be able to use the sdk without any co 2. Windows: ``set FIT_CONNECT_CONFIG=C:\Path\To\config.yml`` 2. Initialize client via ApplicationConfigLoader: ````java - var config = ApplicationConfigLoader.loadConfig(Path.of("absolute/path/to/config.yml")); + var config = ApplicationConfigLoader.loadConfig("absolute/path/to/config.yml"); var senderClient = ClientFactory.senderClient(config); ```` 5. run client with ``java -jar client-VERSION.jar [COMMAND] [OPTIONS]`` -- GitLab