Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use any of the above clients, you will need to include their dependencies. This is best done using Maven, as follows:

StoreClient

Code Block
<dependency>
  <groupId>org.duracloud</groupId>
  <artifactId>storeclient</artifactId>
  <version>3.2.3</version>
</dependency>

ReportClient

Code Block
<dependency>
  <groupId>org.duracloud</groupId>
  <artifactId>reportclient</artifactId>
  <version>3.2.3</version>
</dependency>

Alternatively, all of the jars included in the libs directory of the download package can be added to be available on your local java classpath. You will then be able to write code using the provided Javadocs to interact with the client.

Example code

StoreClient

An example Maven-based project which provides examples for using the storeclient can be found on Github here: https://github.com/duracloud/rest-client-example

ReportClient

An For each of the clients listed above, an example Java class has been provided to assist in set up and testing, as well as a starting point for writing your client code. The example client (found in ExampleClient.javathe download package under /resources) includes a simple main class which performs a subset of calls the client is capable of performing, and printing information to the console. To run an example:

...