2023-01-28 21:16:29 +01:00
# japanese-pokemon-cards-sdk-csharp
2023-03-03 19:17:00 +01:00
[![nuget ](https://img.shields.io/nuget/vpre/JpnCardsPokemon.Sdk?style=flat-square )](https://www.nuget.org/packages/JpnCardsPokemon.Sdk/) [![downloads ](https://img.shields.io/nuget/dt/JpnCardsPokemon.Sdk?style=flat-square )](https://www.nuget.org/packages/JpnCardsPokemon.Sdk/) ![license ](https://img.shields.io/github/license/serraniel/japanese-pokemon-cards-sdk-csharp?style=flat-square ) ![vulnerabilities ](https://img.shields.io/snyk/vulnerabilities/github/serraniel/japanese-pokemon-cards-sdk-csharp?style=flat-square ) ![dependencies ](https://img.shields.io/librariesio/github/serraniel/japanese-pokemon-cards-sdk-csharp?style=flat-square )
2023-03-03 19:16:12 +01:00
Dependency-free C# SDK for interaction with [jpn-cards.com ](https://jpn-cards-site.readthedocs.io/en/latest/home/ ). With the SDK you can gather information about Japanese Pokémon TCG. This includes information about sets and cards, including current price information if available.
The data is provided by an external API. Please check the above link for more information. The SDK only fetches their current JSON data and wraps them into object.
2023-03-03 19:28:34 +01:00
## Installing
The package is available at [Nuget ](https://www.nuget.org/packages/JpnCardsPokemon.Sdk/ ).
**.Net CLI:**: `dotnet add package JpnCardsPokemon.Sdk --version 0.1.0-beta`
**Package manager:** `NuGet\Install-Package JpnCardsPokemon.Sdk -Version 0.1.0-beta`
2023-03-03 19:16:12 +01:00
## Documentation
You can find full documentation [here ](docs/index.md ).
## Examples
```csharp
var client = new ApiClient();
// fetch all set information
var sets = await client.FetchSetsAsync();
// fetch cards from set
var vmaxClimaxCards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { SetCode = "s12a" });
// fetch all morpeko cards
var morpekoCards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "morpeko" });
// fetch all Charizard drawn by Arita
2023-03-03 19:28:34 +01:00
var aritaCharizardCards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "charizard", Artist = "mitsuhiro arita" });
```