SetsApiJs

class SetsApiJs(config: ScryfallConfig = ScryfallConfig())

JavaScript-friendly wrapper for SetsApi.

Usage:

const api = new SetsApiJs();
const sets = await api.all();
const set = await api.byCode('neo');

Constructors

Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig())

Functions

Link copied to clipboard

Returns a list of all Sets on Scryfall.

Link copied to clipboard
fun byCode(code: String): Promise<JsSet>

Returns a Set with the given set code.

Link copied to clipboard

Returns a Set with the given Scryfall ID.

Link copied to clipboard

Returns a Set with the given TCGPlayer ID.