An example of how to use the ClearInsights SDK within your .Net Console applications and services.
Explore the docs »
Report Bug
·
Request Feature
Install the ClearInsights SDK
- Package Manager
Install-Package ClearInsights -Version 1.0.42
- .Net CLI
dotnet add package ClearInsights --version 1.0.42
Create a free ClearInsights account to start using the SDK
-
Get a free account at https://clearinsights.io and retrieve your API Key under the Administration ->APIKey menu.
-
Create at least 1 product and 1 environment and retrieve the Client Secret for the product/environment.
-
Clone the repo
git clone https://github.com/ClearInsights/ClearInsights.Console.git
-
Enter your API Key and Client Secret in
Program.cs
.AddClearInsightsLogger(configuration => { configuration.ApiKey = "{ApiKey}"; configuration.Secret = "{Environment Client Secret}"; configuration.ApplicationName = "{Application Name}"; }))
Use this app as an example of how to use the ClearInsights SDK within your console applications and services.
For more examples, please refer to the Documentation