quickbooks-api
Version:
A modular TypeScript SDK for seamless integration with Intuit QuickBooks APIs. Provides robust authentication handling and future-ready foundation for accounting, payments, and commerce operations.
19 lines (18 loc) • 622 B
JavaScript
/**
* Raw Company Info Query
* @param this - The Company Info API
* @param query - The Raw Query
* @returns The Company Info
*/
export async function rawCompanyInfoQuery(query) {
// Get the Company Endpoint
const companyEndpoint = await this.getCompanyEndpoint();
// Setup the URL
const url = `${companyEndpoint}/query?query=${encodeURIComponent(query)}`;
// Get the Company Info
const response = await this.apiClient.runRequest(url, { method: 'GET' });
// Format the Response
const companyInfo = this.formatResponse(response);
// Return the Company Info
return companyInfo;
}