Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fetch-mkm-card

1.1.0 • Public • Published

fetch-mkm-card

A node client for fetching Magic: The Gathering card information with the MKM API.

👑 Usage

const { fetchMkmCard } = require("fetch-mkm-card");
 
fetchMkmCard.init({
  appToken: "XXXXXXXXXXXXXXXX",
  appSecret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  accessToken: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  accessTokenSecret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
});
 
const card = fetchMkmCard("Rhox").then((res) => res.json());

🧙‍♂️ Test

Run the test yarn script. Enter your Magic Cardmarket API credentials as a single node process arg, seperated by comma. Order should be: app token, app secret, access token, access token secret

yarn test XXXXXXXXXXXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

📜 License

MIT

Install

npm i fetch-mkm-card

DownloadsWeekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

5.6 kB

Total Files

9

Last publish

Collaborators

  • avatar