RulingsApi

class RulingsApi(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null) : ScryfallBaseApi

Rulings represent Oracle rulings, Wizards of the Coast set release notes, or Scryfall notes for a particular card. https://scryfall.com/docs/api/rulings

Constructors

Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null)

Functions

Link copied to clipboard
suspend fun byArenaId(id: Int, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>

Returns rulings for a card with the given Magic: The Gathering Arena ID. https://scryfall.com/docs/api/rulings/arena

Link copied to clipboard
suspend fun byCardId(id: String, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>

Returns a List of rulings for a card with the given Scryfall ID. https://scryfall.com/docs/api/rulings/id

Link copied to clipboard
suspend fun byCollectorId(code: String, number: String, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>

Returns a List of rulings for the card with the given set code and collector number. https://scryfall.com/docs/api/rulings/collector

Link copied to clipboard
suspend fun byMtgoId(id: Int, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>

Returns rulings for a card with the given MTGO ID (also known as the Catalog ID). The ID can either be the card’s mtgo_id or its mtgo_foil_id. https://scryfall.com/docs/api/rulings/mtgo

Link copied to clipboard
suspend fun byMultiverseId(id: Int, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>

Returns a List of rulings for a card with the given Multiverse ID. If the card has multiple multiverse IDs, this method can find either of them. https://scryfall.com/docs/api/rulings/multiverse