Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

jdharmon/scryfallapi-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Node.js Scryfall API Client

This package is auto-geneated from the Scryfall API definition.

Getting Started

  1. Create a folder for your project
mkdir MyPackage
cd MyPackage
git init
  1. Add this repository as a submodule.
git submodule add https://github.com/jdharmon/scryfallapi-nodejs.git scryfall
  1. Initialize package, and install dependencies
npm init
npm install ms-rest
  1. Edit index.js
const scryfallClient = require('./scryfall/scryfallClient');
const scryfall = new scryfallClient();

scryfall.cards.getRandom((error, card) => {
    if (card != null) {
        console.log(`Got card: ${card.name}`);
        console.log(card);
    }
});
  1. Run your app
node index.js

About

Node.js Scryfall API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published