Skip to content

Commit 85eafc8

Browse files
committed
Add the config and pomxml to be compatible with example
1 parent 1d4c9e8 commit 85eafc8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Xero-Java
22

3-
[![Maven Central](https://img.shields.io/maven-central/v/com.github.xeroapi/xero-java.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.xeroapi%22%20AND%20a:%22xero-java%22)
4-
5-
This is the official Java SDK for Xero's API. It supports accounting, fixed asset and bank feed API endpoints. All third party libraries dependencies managed with Maven.
63

4+
This is the fork for the Getting Started with Xero with the Java SDK.
5+
Changes to the main repo are the invoice summary servlet, chart.html and added the config.json file
6+
This was run on glassfish 4 with IntelliJ
77

88
## Migrating from version 1.0 to 2.0 of SDK
99
We've made some big changes to our Java SDK with version 2.0. All code examples in this README are for version 2.0. We've archived [code samples for version 1.0 here](https://github.com/XeroAPI/Xero-Java/tree/master/example).

pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
<version>1.3</version>
8484
<scope>test</scope>
8585
</dependency>
86+
<dependency>
87+
<groupId>com.google.code.gson</groupId>
88+
<artifactId>gson</artifactId>
89+
<version>2.2.2</version>
90+
<scope>compile</scope>
91+
</dependency>
8692
<dependency>
8793
<groupId>org.apache.httpcomponents</groupId>
8894
<artifactId>httpclient</artifactId>

src/main/resources/config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"AppType" : "PUBLIC",
3+
"UserAgent": "Your-App-Name",
4+
"ConsumerKey" : "YourConsumerKey",
5+
"ConsumerSecret" : "YourConsumerSecret",
6+
"CallbackBaseUrl" : "http://localhost:8080",
7+
"CallbackPath" : "/CallbackServlet"
8+
}

0 commit comments

Comments
 (0)