Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Sage/sageone_api_java_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sage Business Cloud Java API Sample application (deprecated)

Please note that this Sample Application is not updated anymore. To get an overview of all current sample applications for the Sage Accounting API, please visit https://developer.sage.com/api/accounting/guides/sample_apps/.

Application Setup

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 Business Cloud Accounting via the Sage API.

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

Authentication with Sage 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.

License

This sample application is available as open source under the terms of the MIT licence.

Copyright (c) 2020 Sage Group Plc. All rights reserved.