https://github.com/olsh/sentry-api-client
A Sentry API client for .NET
https://github.com/olsh/sentry-api-client
Last synced: 7 months ago
JSON representation
A Sentry API client for .NET
- Host: GitHub
- URL: https://github.com/olsh/sentry-api-client
- Owner: olsh
- License: mit
- Created: 2019-09-04T20:15:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T13:29:27.000Z (8 months ago)
- Last Synced: 2024-11-29T13:30:03.290Z (8 months ago)
- Language: C#
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentry API client

This is a library for [Sentry web API](https://docs.sentry.io/api/),
if you are looking for reporting API(submitting events) take a look at the library https://github.com/getsentry/sentry-dotnet# Getting started
```csharp
// 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(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