net.tcgdex.sdk 2.0.0
Install 1/2: Add this to pom.xml:
Learn more about Maven or Gradle
<dependency>
<groupId>net.tcgdex</groupId>
<artifactId>sdk</artifactId>
<version>2.0.0</version>
</dependency>
Install 2/2: Run via command line
$ mvn install
About this package
The Kotlin/Java SDK provides a convenient access with the Open Source TCGdex API.
The SDK is available both for Kotlin use and Java.
The full API/SDK documentation in progress at API Documentation - TCGdex
Gradle
- add the repository in you
build.gradle
repositories {
...
maven { url 'https://jitpack.io' }
}
- Add the dependency in your
build.gradle
dependencies {
implementation 'net.tcgdex:java-sdk:{Version}'
}
Maven
- add the repository in your
pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
- Add the depedency in your
pom.xml
<dependency>
<groupId>net.tcgdex</groupId>
<artifactId>java-sdk</artifactId>
<version>{Version}</version>
</dependency>
Note: a complete documentation is available at TCGdex.dev
Example: Fetch a Card
// Import the SDK
import net.tcgdex.sdk.TCGdex
// Init the library with the language code (see the API REST documentation for the list)
val api = TCGdex("en")
// returns you a Card Class with every informations filled!
val card = api.fetchCard("swsh1-1")
Other Functions
api.fetchCard("swsh3-136")
api.fetchCard("swsh3", "136")
api.fetchSet("swsh3")
api.fetchSets()
api.fetchSerie("swsh")
api.fetchSeries()
api.fetchTypes()
api.fetchType("Colorless")
api.fetchRetreats()
api.fetchRetreat("1")
api.fetchRarities()
api.fetchRarity("Uncommon")
api.fetchIllustrators()
api.fetchIllustrator("tetsuya koizumi")
api.fetchHPs()
api.fetchHP("110")
api.fetchCategories()
api.fetchCategory("Pokemon")
api.fetchDexIds()
api.fetchDexId("162")
api.fetchEnergyTypes()
api.fetchEnergyType("Special")
api.fetchRegulationMarks()
api.fetchRegulationMark("D")
api.fetchStages()
api.fetchStage("Basic")
api.fetchSuffixes()
api.fetchSuffix("EX")
api.fetchTrainerTypes()
api.fetchTrainerType("Tool")
api.fetchVariants()
api.fetchVariant("holo")
See CONTRIBUTING.md
TL::DR
-
Fork
-
Commit your changes
-
Pull Request on this Repository
This project is licensed under the MIT License. A copy of the license is available at LICENSE.md
This is based on the Maxopoly TCGdex Java SDK
Assets
- sdk-2.0.0-sources.jar.sha512
- sdk-2.0.0-sources.jar.sha256
- sdk-2.0.0-sources.jar.md5
- sdk-2.0.0-sources.jar.sha1
- sdk-2.0.0-sources.jar
- sdk-2.0.0-javadoc.jar.sha512
- sdk-2.0.0-javadoc.jar.sha256
- sdk-2.0.0-javadoc.jar.md5
- sdk-2.0.0-javadoc.jar.sha1
- sdk-2.0.0-javadoc.jar
- sdk-2.0.0.module.sha512
- sdk-2.0.0.module.sha256
- sdk-2.0.0.module.md5
- sdk-2.0.0.module.sha1
- sdk-2.0.0.module
- sdk-2.0.0.pom.sha512
- sdk-2.0.0.pom.sha256
- sdk-2.0.0.pom.md5
- sdk-2.0.0.pom.sha1
- sdk-2.0.0.pom
- sdk-2.0.0.jar.sha512
- sdk-2.0.0.jar.sha256
- sdk-2.0.0.jar.md5
- sdk-2.0.0.jar.sha1
- sdk-2.0.0.jar
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0