GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zliang01/NitrAPI-Java: Java based SDK for the Nitrapi

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Nitrapi-Java

Java based SDK for the Nitrapi RESTful API.

Usage

Maven

Add the following to the <dependencies> section of your pom.xml:

<dependency>
    <groupId>net.nitrado</groupId>
    <artifactId>nitrapi</artifactId>
    <version>1.2.0</version>
</dependency>

Gradle

Add this to your app build.gradle:

dependencies {
    implementation 'net.nitrado:nitrapi:1.2.0'
}

Example

Nitrapi api = new Nitrapi("<access token>");
try {
    Service[] services = api.getServices();
    // ...
} catch (NitrapiErrorException e) {
    // There was an error in our request to the api.
    // ...
} catch (NitrapiAccessTokenInvalidException e) {
    // The access token is no longer valid.
    // ...
} catch (NitrapiHttpException e) {
    // There was an error connecting to the api.
    // ...
} catch (NitrapiConcurrencyException e) {
    // The same action is already running.
    // ...
} catch (NitrapiMaintenanceException e) {
    // The Nitrapi is currently down for maintenance.
    // ...
}

About

Java based SDK for the Nitrapi

server.nitrado.net/

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.