Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

MichaelSL/botanclient

Repository files navigation

Yandex Metrica Botan client

⚠️ The Botan service has been shut down. This repository is archived now. ⚠️

Yandex Metrica Botan client for .NET NETStandard 2.0

Build status

Usage

Reference BotanClient

Install via NuGet:

PM> Install-Package BotanClient

or build the NuGet with Cake build:

./build.ps1 -target "BotanClient"

Modify your project code

Register client in your services and provide your yandex metrica token:

services.AddSingleton(_ => new BotanClient.BotanClient(botanToken));

Inject client into your controller:

private readonly BotanClient.BotanClient botanClient; public UpdateController(BotanClient.BotanClient botanClient) { this.botanClient = botanClient; }

Send data to Botan:

await botanClient.SendEvent(new BotanMessage { EventName = "MY_EVENT", RawData = new { message = message, someMetric = 1.0 }, Uid = "UserIdHere" });

About

NET Client for Yandex Botan bot analytics service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors