Giter Site home page Giter Site logo

zenhub-api-java-client's Introduction

Unofficial Java client for public ZenHub API

Implements the read-only API of the public ZenHub API. Pull requests welcome!

Installation

  1. Clone the repository and add the artifacts to your local Maven cache:
git clone https://github.com/jgwest/zenhub-api-java-client
cd zenhub-api-java-client
mvn install -DskipTests
  1. Add the client dependency into your Maven pom.xml
<dependencies>
	<dependency>
		<groupId>zenhub-api-java-client</groupId>
		<artifactId>zenhub-api-java-client</artifactId>
		<version>1.0.0</version>
	</dependency>
  ( ... )
</dependencies>

Usage

The exposed client services correspond to resources available through the ZenHub API.

These are:

  • Boards - See BoardService.java
  • Dependencies - See DependenciesService.java
  • Epic / Epics - See EpicsService.java
  • Issue Data / Issue Events - See IssuesService.java

Example usage:

// Generate a token in the API Tokens section of your ZenHub Dashboard 
// (https://app.zenhub.com/dashboard/tokens)
String yourZenHubApiKey = "/* your api token */"; 
ZenHubClient zhClient = new ZenHubClient("https://api.zenhub.io", yourZenHubApiKey);

IssuesService issuesService = new IssuesService(zhClient);

long repositoryId = /* github repository id number*/;
int issueNumber = /* issue number */;

ApiResponse<GetIssueDataResponseJson> response = issuesService.getIssueData(repositoryId, issueNumber);

GetIssueDataResponseJson json = response.getResponse();

See ZHTest class for sample API usage.

zenhub-api-java-client's People

Contributors

jgwest avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

sgitario

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.