From 128614ef380dc405b8fd87b8352623839c40dcba Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 9 Apr 2016 16:35:59 -0700 Subject: Adding maven example to README.md --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbfbf5a..4eda590 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,24 @@ if the one you need is missing. ## Usage -1. Create a single instance of CCBAPIClient for your application. +1. If you're using Maven or Ivy, add a dependency on the [latest release](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.p4square%22%20AND%20a%3A%22ccbapi%22): + + ```xml + + com.p4square + ccbapi + 1.0 + + ``` + +2. Create a single instance of CCBAPIClient for your application. CCBAPIClient is thread-safe and manages its own pool of HTTP connections. ```java CCBAPI ccbClient = new CCBAPIClient("mychurch", "myuser", "mypassword"); ``` -2. Call the necessary APIs. For example, to get an individual by id: +3. Call the necessary APIs. For example, to get an individual by id: ```java try { @@ -45,7 +55,7 @@ CCBAPIClient is thread-safe and manages its own pool of HTTP connections. } ``` -3. Do something useful with the responses from CCB. +4. Do something useful with the responses from CCB. ```java IndividualProfile profile = response.getIndividuals().get(0); -- cgit v1.2.3