A simple wrapper written in Java for the Launch Library API. Written and maintained by Nahuel.
- Java 8 or above.
Replace
VERSIONwith a specific version. The latest version can be found at the "Download" button, or the Bintray page.
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.nahu</groupId>
<artifactId>launchlibrary</artifactId>
<version>VERSION</version>
<type>pom</type>
</dependency>
</dependencies>repositories {
jcenter()
}
dependencies {
compile 'me.nahu:launchlibrary:VERSION'
}To get started, you'll need to get a LaunchLibrary instance.
LaunchLibrarylaunchLibrary = newLaunchLibrary.Builder().build();Next, we can use the functions in this instance to query the API and get what we need. For this next example we'll query all Falcon rockets and print their names.
LaunchLibrarylaunchLibrary = newLaunchLibrary.Builder().build();
launchLibrary.getRocketsFromName("Falcon").execute(rocketQuery -> rocketQuery.getRockets().forEach(rocket -> System.out.println(rocket.getName())
)
);- Run
./gradlew shadowJarin project's root. - The file located in
build/libs.
- Run
./gradlew buildin project's root. - The file located in
build/libs.
Pull requests are accepted and greatly appreciated. Please be sure to follow the code guidelines stated bellow.
The contents of this repository are licensed under the MIT license. A copy of the MIT license can be found in LICENSE.