Search code snippets, questions, articles...

Push notifications with C#

LogHive provides an SDK for C# that makes it easy to integrate the service into your application. You can download the SDK via NuGet (NuGet Package) and install it in your project. Then, all you need is a few lines of code to start pushing events to Loghive. For example, to push a new event, you can use the following code.
var logger = new LogHiveApi("your-api-key");
var notification = false;
var response = await logger.AddEventAsync("yourprojectname", "yourgroupname", "your-event-name", "descripton", notification);
Was this helpful?
Programming Feeds
Learn something new everyday on Devsheet