Git Product home page Git Product logo

java-launch-library's Introduction

java-launch-library

Travis-CI Build Status Download

A simple wrapper written in Java for the Launch Library API. Written and maintained by Nahuel.

Requirements

  • Java 8 or above.

Download

Replace VERSION with a specific version. The latest version can be found at the "Download" button, or the Bintray page.

Maven
<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>
Gradle:
repositories {
    jcenter()
}

dependencies {
    compile 'me.nahu:launchlibrary:VERSION'
}

Usage

To get started, you'll need to get a LaunchLibrary instance.

        LaunchLibrary launchLibrary = new LaunchLibrary.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.

        LaunchLibrary launchLibrary = new LaunchLibrary.Builder().build();
        launchLibrary.getRocketsFromName("Falcon").execute(rocketQuery -> 
                rocketQuery.getRockets().forEach(rocket -> 
                        System.out.println(rocket.getName())
                )
        );

How to build

With dependencies
  1. Run ./gradlew shadowJar in project's root.
  2. The file located in build/libs.
Without dependencies
  1. Run ./gradlew build in project's root.
  2. The file located in build/libs.

Contributing

Pull requests are accepted and greatly appreciated. Please be sure to follow the code guidelines stated bellow.

Code Guidelines

License

The contents of this repository are licensed under the MIT license. A copy of the MIT license can be found in LICENSE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.