GitHub - ccanning2/sageone_api_java_sample: Sage One API - Java Sample

Sage One Java API Sample application

FOR changes required for v3 please refer to the v3 branch

Note: Request signing and noncing (the X-Signature and X-Nonce headers) is no longer checked in v3. The related code will soon be removed from this repo.

Sample application that integrates with Sage One Accounting via the Sage One API.

Update the SageoneConstants.java file with your application's client_id, client_secret, signing_secret and callback_url.

Authentication with Sage One is handled as follows:

An example API call (including signing) can be seen in SageoneData.java.

Run the app locally

Clone the repo:

git clone git@github.com:Sage/sageone_api_java_sample.git

and import the project into Eclipse.

Update the SageoneConstants.java file with your application's client_id, client_secret, signing_secret and callback_url.

Run your application using Eclipse / Tomcat.

Access the home page, authorize and make an API call.