https://github.com/yuhima03/dotnet-traq
⚠️ Community Driven ⚠️ .NET client library for the traQ API.
https://github.com/yuhima03/dotnet-traq
dotnet traq
Last synced: 4 months ago
JSON representation
⚠️ Community Driven ⚠️ .NET client library for the traQ API.
- Host: GitHub
- URL: https://github.com/yuhima03/dotnet-traq
- Owner: YuHima03
- License: mit
- Created: 2024-10-24T09:40:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-27T04:59:22.000Z (4 months ago)
- Last Synced: 2025-01-27T05:26:35.221Z (4 months ago)
- Topics: dotnet, traq
- Language: C#
- Homepage: https://www.nuget.org/packages/Traq
- Size: 281 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-traq
Dotnet client library for the traQ API.
## How to Use
### Use in Generic Host
An extension method for the `IServiceCollection` type can be used.
In this case, a singleton instance of the `ITraqApiClient` type is provided by an `IServiceProvider` instance.
```cs
var host = Host.CreateDefaultApplication()
.ConfigureServices(services =>
{
services.AddTraqApiClient(option =>
{
option.BaseAddress = Environment.GetEnvironmentVariable("TRAQ_BASE_ADDRESS");
option.BearerAuthToken = Environment.GetEnvironmentVariable("TRAQ_ACCESS_TOKEN");
});
})
.Build();host.Run();
```