@mft/moneyhub-api-client
Version:
Node.JS client for the Moneyhub API
19 lines • 696 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ({ config, request }) => {
const { resourceServerUrl } = config;
return {
getSpendingAnalysis: async ({ userId, dates, accountIds, categoryIds, projectIds }, options) => {
return await request(`${resourceServerUrl}/spending-analysis`, {
method: "POST",
cc: {
scope: "spending_analysis:read",
sub: userId,
},
body: { dates, accountIds, categoryIds, projectIds },
options,
});
},
};
};
//# sourceMappingURL=spending-analysis.js.map