Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 753 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 753 Bytes

Scryfall Java Api

Include with Maven

Published on Central Maven https://search.maven.org/artifact/io.github.suppennudel/scryfall-rest-api

<dependency>
    <groupId>io.github.suppennudel</groupId>
    <artifactId>scryfall-rest-api</artifactId>
    <version>1.5.6</version>
</dependency>

Usage

Everything stems from de.rohmio.mtg.scryfall.api.ScryfallApi

For example if you want to use the cards endpoint and seach for a card by its scryfall id:

String scryfallId = "e9d5aee0-5963-41db-a22b-cfea40a967a3";
CardObject cardObject = ScryfallApi.cards.scryfallId(scryfallId).get();

Settings

You can adjust the rate by which requests are made in ScryfallApi.SCRYFALL_RATE_LIMIT. The default value is 100 (ms between requests).