The Docusign eSignature Node Client is initialized by importing the main module. The SDK follows a factory pattern that exports several core components: Configuration for setting up environment and credentials, ApiClient for handling HTTP requests, a vast collection of model classes for data structures, and various Api classes for interacting with specific Docusign resources.
To use the SDK, you typically instantiate an ApiClient, configure it with your credentials, and then use the specific API classes (e.g., EnvelopesApi) to perform actions.
const Docusign = require('docusign-esign');
// The SDK exports Configuration, ApiClient, models, and API classes
// Example usage pattern:
const apiClient = new Docusign.ApiClient();
const envelopesApi = new Docusign.EnvelopesApi(apiClient);