The Consumer Application Instance object is the main object used for getting and sending data and events. Consumer Application Instances are created using the consumerApplicationInstance() method in the core library. This method is called with a connection and the location of a configuration file, and returns a Consumer Application Instance object, which can then be used for subsequent calls to the library.
The code example below shows how to create a Consumer Application Instance after the configuration file has been received and a connection object has been created.
const adpCore = require('adp-core'); const app = adpCore.consumerApplicationInstance(connection, './config.zip');