japanese-pokemon-cards-sdk-.../docs/JpnCardsPokemon.Sdk.Client.ApiClient.FetchCardsAsync(string).md

1.9 KiB

JpnCardsPokemon.Sdk

JpnCardsPokemon.Sdk.Client.ApiClient

ApiClient.FetchCardsAsync(string) Method

Fetches Card from a search query.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<JpnCardsPokemon.Sdk.Api.Card>> FetchCardsAsync(string query);

Parameters

query System.String

The search query.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Card>>
Returns an enumerable of Card matching the query.

Exceptions

System.Exception
Thrown if the query is empty.

Remarks

At least one filter query must be specified. More information about the query format can be found at
https://jpn-cards-site.readthedocs.io/en/latest/api_docs/pokemon/v2/v2_api/#card-queries.