Skip to content

Marfusios/strike-client

Repository files navigation

Logo

Strike .NET client NuGet version Nuget downloads

This is a C# implementation of the Strike API found here:

https://docs.strike.me/api

Releases and breaking changes

License:

MIT

Features

  • installation via NuGet (StrikeWallet.Client)
  • targeting .NET Standard 2.1 (.NET Core, Linux/MacOS compatible), .NET 5-8

Usage

var apiKey = "YOUR_API_KEY";
var environment = Environment.Live;

var client = new StrikeClient(environment, apiKey);
var profile = await client.Accounts.GetProfile("marfusios");

With dependency injection support:

appsettings.json

{
  "Strike": {
    "Environment": "Live",
    "ApiKey": "YOUR_API_KEY"
  }
}

Startup.cs

services.AddStrike();

More usage examples:

  • console sample (link)
  • integration tests (link)

Pull Requests are welcome!