Configuration parameters will be retrieved from these sources in the listed order:
- Command line arguments passed when running the example (E.g.:
APP_KEY=xyz
) - A properties file located in the root folder of the C# examples at
./examples.properties
(seeexamples.properties
as reference) - Environment variables
- A properties file located in the home folder at
~/examples.properties
(seeexamples.properties.template
as reference)
Here is an example of an examples.properties
file:
APP_KEY=your_key
APP_SECRET=your_secret
Execute run_example.sh with the name of the desired example as first parameter, followed by a list of configuration parameters if needed.
sh ./run-example.sh App APP_KEY=you-key APP_SECRET=you_secret
or
dotnet run App APP_KEY=you-key APP_SECRET=you_secret
dotnet run Account APP_KEY=you-key APP_SECRET=you_secret
Execute run_example.bat with the name of the desired example as first parameter, followed by a list of configuration parameters if needed.
run-example.bat App APP_KEY=you-key APP_SECRET=you_secret