byCode

suspend fun byCode(code: String, format: String? = "json", pretty: Boolean? = false): Set

Returns a Set with the given set code. The code can be either the code or the mtgo_code for the set. https://scryfall.com/docs/api/sets/code

Parameters

code
  • The three to five-letter set code.

format
  • The data format to return. This method only supports json.

pretty
  • If true, the returned JSON will be prettified. Avoid using for production code.