olsh / sentry-api-client

A Sentry API client for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sentry API client

CI Nuget

This is a library for Sentry web API, if you are looking for reporting API(submitting events) take a look at the library https://github.com/getsentry/sentry-dotnet

Getting started

// Initialize client with token
var sentryClient = new SentryApiClient(token);

// Gets the first page of projects
var projects = sentryClient.Projects.GetAsync();

// Get all projects
var allProjects = new List<Project>(pagedCollection.Collection);
while (pagedCollection.Pagination.HasNext)
{
    pagedCollection = await client.LoadNextPageAsync(pagedCollection);
    allProjects.AddRange(pagedCollection.Collection);
}

Known issues

Most of the API call is not implemented yet

About

A Sentry API client for .NET

License:MIT License


Languages

Language:C# 100.0%