Giter Site home page Giter Site logo

zendesk-java-api's Introduction

zendesk-java-api

Build Status Codacy Badge Coverage Status Dependencies Dependency Status Join the chat at https://gitter.im/99taxis/zendesk-java-api

Zendesk Java API is a simple client library for Java that provides an interface to the Zendesk Core API.

Note: zendesk-java-api is a partial implementation of the Zendesk Core API. The Zendesk Core API and the Zendesk Java API are both under development, and this library is subject to frequent change.

License GitHub tag Maintenance

Supported Methods

Most of the tickets and search APIs, and some of the users and ticket_fields APIs.

Download

Zendesk Java API is not yet listed on Maven Central nor any real maven repository, but we use our raw Github public maven repo. So, to use it, add the repository to your pom.xml file:

<repository>
  <id>99taxis-github-maven-repo</id>
  <url>https://raw.github.com/99taxis/maven-public/master/releases</url>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
</repository>

and the zendesk-java-api lib

<dependency>
  <groupId>com.taxis99</groupId>
  <artifactId>zendesk-java-api</artifactId>
  <version>LATEST_VERSION</version>
</dependency>

zendesk-java-api supports Java 8.

Usage

First, set the credentials in a properties file (see zendesk-sample.properties), set some environment variables, or extend ZendeskConfig yourself and bind the config and a default Gson instance.

import com.google.gson.Gson;
import com.taxis99.zendesk.config.GsonInstanceHolder;
import com.taxis99.zendesk.config.ZendeskConfig;
import com.taxis99.zendesk.config.ZendeskConfigFromEnvironment;
import com.taxis99.zendesk.config.ZendeskConfigFromProperties;

...

  final Gson gson;
  final ZendeskConfig config;

  gson = GsonInstanceHolder.getDefaultBuilder().setPrettyPrinting().create();
  if (ZendeskApiTest.class.getResource("/zendesk.properties") != null) {
    config = new ZendeskConfigFromProperties();
  } else {
    config = new ZendeskConfigFromEnvironment();
  }

After that you instantiate a ZendeskApi object.

import com.taxis99.zendesk.ZendeskApi;

...

  final ZendeskApi zendeskApi = new ZendeskApi(gson, config);

You can then use Zendesk API methods:

import com.taxis99.zendesk.ZendeskApi;
import com.taxis99.zendesk.model.Ticket;

...

  final Ticket ticket = zendeskApi.getTicketById(46239L);

License

zendesk-java-api is open source software released under the MIT License.

See the LICENSE file for details.

zendesk-java-api's People

Contributors

dabramovici avatar fgsguedes avatar gitter-badger avatar migmruiz avatar renatoebah avatar

Watchers

 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.