SampleApp-CRUD-Java
Welcome to the Intuit Developer's Java Sample App for CRUD operations.
This sample app is meant to provide working examples of how to integrate your app with the Intuit Small Business ecosystem. Specifically, this sample application demonstrates the following:
Please note that while these examples work, features not called out above are not intended to be taken and used in production business applications. In other words, this is not a seed project to be taken cart blanche and deployed to your production environment.
For example, certain concerns are not addressed at all in our samples (e.g. security, privacy, scalability). In our sample apps, we strive to strike a balance between clarity, maintainability, and performance where we can. However, clarity is ultimately the most important quality in a sample app.
Therefore there are certain instances where we might forgo a more complicated implementation (e.g. caching a frequently used value, robust error handling, more generic domain model structure) in favor of code that is easier to read. In that light, we welcome any feedback that makes our samples apps easier to learn from.
In order to successfully run this sample app you need a few things:
config.properties
, set oauth.type as 1 or 2 depending on type of app you have. For OAuth2 apps set value as 2.config.properties
file values (realmid, oauth2.accessToken).config.properties
file values (realmId, app token, consumer key, consumer secret, access token key, access token secret). Note: If you do not want to use maven, just import the project and add the jars to your project externally.
This app is directed to provide individual sample code for CRUD operations for various QBO entities. Each class has a main method that can be run individually.
Steps described below is to run the class for creating a customer in Eclipse IDE.
Follow similar steps for other classes.
Notes:
Standard Java coding structure is used for the sample app