The TypeScript SDK
Questi contenuti non sono ancora disponibili nella tua lingua.
Installation
npm i @tcgdex/sdk
bun i @tcgdex/sdk
yarn add @tcgdex/sdk
pnpm add @tcgdex/sdk
Usage
// Import the SDKimport TCGdex from '@tcgdex/sdk'
// Instantiate the SDKconst tcgdex = new TCGdex('en');
// go into an async context(async () => { // Card will be Furret from the Darkness Ablaze Set const card = await tcgdex.fetch('cards', 'swsh3-136');})();
You can check in the JSON REST API docs and select the correct tab to see the command specific for your SDK