Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatcg

giantcow32Apache-2.00.0.1-alpha.11

Community maintained Typescript client for the Grand Archive TCG API.

GATCG, Grand Archive, TCG, OpenAPI

readme

GATCG API

This is a work in progress! Expect LOTS of changes, but please feel free to file issues and/or PR's!

A modeled version of the Grand Archive TCG API, using Smithy.

This is a community maintained project, not endorsed by Weebs of the Shore.

Usage

  1. Run smithy build in your CLI
  2. Set your node module dependency to the file location: /path/to/this/repo/build/smithy/source/typescript-client-codegen

Example

import { GatcgClient, GetCardCommand } from 'gatcg-api-client'

const client = new GatcgClient({endpoint: "https://api.gatcg.com" });

try {
    const result = await client.send(new GetCardCommand({ slug: "slimeshield" }));
    console.log(result);
} catch (err) {
    console.error(err);
}

API Documentation

Any illustrations, trademarks, are copyright of © Weebs of the Shore https://www.gatcg.com/