diff --git a/README.md b/README.md index d385147c58182b864b1fc58c8a57b113ba8691aa..49c7f48e364557e511b86129da43bdbb33a9fadc 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 8610bd31aeb2e341a2f2c3b81b6d5518bf8dfd2f..3ac0cfe3794c03732897538d56031be83969b374 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]``