Coder Social home page Coder Social logo

wercker4j's Introduction

Wercker4J

wercker status Maven Central Javadoc

Wercker4J is java client library for wercker API.
JavaDoc is here.

Version

1.0.0

Install

<dependency>
  <groupId>org.wercker4j</groupId>
  <artifactId>wercker4j</artifactId>
  <version>1.0.0</version>
</dependency>

Usage

// Create a new client
String token = "..."
Wercker4jClient client = new Wercker4jClient(token);

Application

// Get a appliation detail
String owner = "...";
String appName = "...";
Application application = client.getApplication(new GetApplicationOption(owner, appName));

// Get all appliations of user
List<ApplicationSummary> applicationList = client.getApplications(new GetApplicationsOption(owner));

Build

// Trigger a new build for an application
String applicationId = "...";
client.createBuild(new CreateBuildOption(applicationId));

// Get a build detail of an application
String buildId = "...";
Build build = client.getBuild(new GetBuildOption(buildId));

// Get all builds of an application
String owner = "...";
String appName = "...";
List<BuildSummary> buildList = client.getBuilds(new GetBuildsOption(owner, appName));

Deploy

// Get a deploy detail of an application
String deployId = "...";
Deploy deploy = client.getDeploy(new GetDeployOption(deployId));

// Get all deploys of an application
String owner = "...";
String appName = "...";
List<DeploySummary> deployList = client.getDeploys(new GetDeploysOption(owner, appName));

Token

// Trigger a new token
String newTokenName = "...";
Token token = client.createToken(new CreateTokenOption(newTokenName));

// Get a token detail
String tokenId = "...";
Token token = client.getToken(new GetTokenOption(tokenId));

// Get all tokens
 List<TokenSummary> tokenList = client.getTokens();

License

Please see LICENSE.

wercker4j's People

Contributors

yeahlol avatar valery1707 avatar

Watchers

 avatar James Cloos avatar  avatar

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.