{"id":15750439,"url":"https://github.com/burnett01/node-moco","last_synced_at":"2025-03-13T14:32:53.290Z","repository":{"id":57311460,"uuid":"121441582","full_name":"Burnett01/node-moco","owner":"Burnett01","description":"A microservice api-client to access Mocoapp.com API","archived":true,"fork":false,"pushed_at":"2022-01-16T17:27:21.000Z","size":56,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T02:09:46.637Z","etag":null,"topics":["api","client","microservice","moco","mocoapp","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Burnett01.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-13T21:59:57.000Z","updated_at":"2024-07-17T20:57:20.000Z","dependencies_parsed_at":"2022-09-10T22:10:28.012Z","dependency_job_id":null,"html_url":"https://github.com/Burnett01/node-moco","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burnett01%2Fnode-moco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burnett01%2Fnode-moco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burnett01%2Fnode-moco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burnett01%2Fnode-moco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Burnett01","download_url":"https://codeload.github.com/Burnett01/node-moco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243422848,"owners_count":20288534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","client","microservice","moco","mocoapp","nodejs"],"created_at":"2024-10-04T06:40:46.359Z","updated_at":"2025-03-13T14:32:48.274Z","avatar_url":"https://github.com/Burnett01.png","language":"JavaScript","readme":"\n# node-moco\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Build Status](https://travis-ci.com/Burnett01/node-moco.svg?branch=master)](https://travis-ci.com/Burnett01/node-moco) [![npm version](https://badge.fury.io/js/%40burnett01%2Fnode-moco.svg)](https://badge.fury.io/js/%40burnett01%2Fnode-moco)\n\nA microservice api-client to access [Mocoapp.com API](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/README.md).\n\nThis module is based on my [Extended-Request](https://github.com/Burnett01/extended-request) package,\u003cbr\u003e\nin fact it's using that package in order to perform the api requests.\n\nFeatures:\n  * ES8 (Async/Await)\n  * ES6 (Promises)\n  * ES5 (Callback)\n  * Debug Mode\n\n---\n\n# Table of contents\n* [API Reference](#api-reference)\n* [Property Reference](#property-reference)\n* [Method Reference](#method-reference)\n  * [Create a Moco instance](#create-a-moco-instance)\n  * [Get Activities](#get-activities)\n  * [Get Activity](#get-activity)\n  * [Get Companies](#get-companies)\n  * [Get Company](#get-company)\n  * [Get Comments](#get-comments)\n  * [Get Comment](#get-comment)\n  * [Get Contacts People](#get-contacts-people)\n  * [Get Contacts Person](#get-contacts-person)\n  * [Get Deals](#get-deals)\n  * [Get Deal](#get-deal)\n  * [Get Deal Categories](#get-deal-categories)\n  * [Get Deal Category](#get-deal-category)\n  * [Get Invoices](#get-invoices)\n  * [Get Invoice](#get-invoice)\n  * [Get Invoice Payments](#get-invoice-payments)\n  * [Get Invoice Payment](#get-invoice-payment)\n  * [Get Offers](#get-offers)\n  * [Get Offer](#get-offer)\n  * [Get Projects](#get-projects)\n  * [Get Project](#get-project)\n  * [Get Projects Assigned](#get-projects-assigned)\n  * [Get Projects Expenses](#get-projects-expenses)\n  * [Get Purchases](#get-purchases)\n  * [Get Purchase](#get-purchase)\n  * [Get Purchase Categories](#get-purchase-categories)\n  * [Get Purchase Category](#get-purchase-category)\n  * [Get Schedules](#get-schedules)\n  * [Get Schedule](#get-schedule)\n  * [Get Units](#get-units)\n  * [Get Unit](#get-unit)\n  * [Get Users](#get-users)\n  * [Get User](#get-user)\n  * [Get User Employments](#get-user-employments)\n  * [Get User Employment](#get-user-employment)\n  * [Get User Holidays](#get-user-holidays)\n  * [Get User Holiday](#get-user-holiday)\n* [Sorting](#sorting)\n* [Setup / Install](#setup-install)\n* [Unit-Tests](#unit-tests)\n  * [Make](#make-1)\n  * [NPM](#npm-1)\n* [Notable Changes](CHANGES.md)\n* [Contributing](#contributing)\n* [License](#license)\n\n---\n\n## API Reference\n\n```js\nMoco(\n    [Object {\n      domain: String='mycompany'\n      debug: Boolean=false\n      token: String=''\n    } details]\n) -\u003e Object {\n    /* Constants */\n    this: Object=this\n\n    /* Methods */\n    getActivities: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getActivity: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getCompanies: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getCompany: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getComments: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getComment: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getContactsPeople: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getContactsPerson: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getDeals: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getDeal: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getDealCategories: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getDealCategory: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getInvoices: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getInvoice: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getInvoicePayments: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getInvoicePayment: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getOffers: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getOffer: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getProjects: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getProject: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getProjectsAssigned: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getProjectsExpenses: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n\n    getPurchases: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getPurchase: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getPurchaseCategories: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getPurchaseCategory: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getSchedules: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getSchedule: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getUnits: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getUnit: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getUsers: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getUser: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getUserEmployments: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getUserEmployment: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise\n\n    getUserHolidays: [Object=options, function(class ErrorClass err, any results) cb] | Promise\n    getUserHoliday: [String|Number=id, function(class ErrorClass err, any results) cb] | Promise    \n}\n\n```\n\n---\n\n## Property reference:\n\n| Property | Description |\n| ------ | ----------- |\n| details | An object containing configuration details |\n| domain | The first part of your MOCO domain (eg. mycompany) |\n| apikey | Your MOCO integration API Key |\n| debug | Whether to debug requests |\n---\n\n## Method reference:\n\n### Create a Moco instance\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| domain | mycompany | Yes | |\n| apikey | your key | Yes | |\n| debug | enable debugging | No | false |\n\n```javascript\nconst company = new Moco({\n  domain: 'mycompany',\n  apikey: '\u003ckey here\u003e'\n})\n```\n---\n\n### Get Activities\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| options | for example: { from: '2018-02-01' } | No | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\nOptions reference:\u003cbr\u003e\n[#get-activities](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/activities.md#get-activities)\u003cbr\u003e\n[Sorting](#sorting)\n\n```javascript\n/* Async/Await */\nconst activities = await mycompany.getActivities()\n\nconst activities = await mycompany.getActivities({\n  from: '2017-01-02'\n  to: '2017-01-02'\n})\n\n/* Promise */\nmycompany.getActivities()\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\nmycompany.getActivities({\n  from: '2017-01-02'\n  to: '2017-01-02'\n})\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getActivities((err, response) =\u003e {\n  console.log(err, response)\n})\n\nmycompany.getActivities({\n  from: '2017-01-02'\n  to: '2017-01-02'\n},\n(err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get Activity\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| id | for example: 58844  | Yes | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\n```javascript\n/* Async/Await */\nconst activity = await mycompany.getActivity(58844)\n\n/* Promise */\nmycompany.getActivity(58844)\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getActivity(58844, (err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n---\n\n### Get Companies\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| options | for example: { type: 'customer' } | No | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\nOptions reference:\u003cbr\u003e\n[#get-companies](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/companies.md#get-companies)\u003cbr\u003e\n[Sorting](#sorting)\n\n```javascript\n/* Async/Await */\nconst companies = await mycompany.getCompanies()\n\nconst companies = await mycompany.getCompanies({\n  type: 'customer'\n})\n\n/* Promise */\nmycompany.getCompanies()\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\nmycompany.getCompanies({\n  type: 'customer'\n})\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getCompanies((err, response) =\u003e {\n  console.log(err, response)\n})\n\nmycompany.getCompanies({\n  type: 'customer'\n},\n(err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get Company\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| id | for example: 58844  | Yes | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\n```javascript\n/* Async/Await */\nconst company = await mycompany.getCompany(58844)\n\n/* Promise */\nmycompany.getCompany(58844)\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getCompany(58844, (err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n---\n\n### Get Comments\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-comments](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/comments.md#get-comments)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Comment\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Contacts People\n\nCall as shown above in the [API Reference](#api-reference).\n\nAvailable options: \u003cbr\u003e\n[#get-contacts-people](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/contacts.md#get-contactspeople)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Contacts Person\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Deals\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-deals](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/deals.md#get-deals)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Deal\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Deal Categories\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-deal_categories](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/deal_categories.md#get-deal_categories)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Deal Category\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Invoices\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-invoices](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/invoices.md#get-invoices)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Invoice\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Invoice Payments\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-invoice-payments](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/invoice_payments.md#get-invoicespayments)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Invoice Payment\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Offers\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-offers](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/offers.md#get-offers)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Offer\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Projects\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| options | for example: { include_archived: false } | No | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\nOptions reference:\u003cbr\u003e\n[#get-projects](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/projects.md#get-projects)\u003cbr\u003e\n[Sorting](#sorting)\n\n```javascript\n/* Async/Await */\nconst projects = await mycompany.getProjects()\n\nconst projects = await mycompany.getProjects({\n  include_archived: false\n})\n\n/* Promise */\nmycompany.getProjects()\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\nmycompany.getProjects({\n  include_archived: false\n})\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getProjects((err, response) =\u003e {\n  console.log(err, response)\n})\n\nmycompany.getProjects({\n  include_archived: false\n},\n(err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get Project\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| id | for example: 58844  | Yes | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\n```javascript\n/* Async/Await */\nconst project = await mycompany.getProject(58844)\n\n/* Promise */\nmycompany.getProject(58844)\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getProject(58844, (err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get Projects Assigned\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-projects-assigned](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/projects.md#get-projectsassigned)\u003cbr\u003e\n\n### Get Projects Expenses\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-projects-expenses](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/project_expenses.md)\u003cbr\u003e\n\n---\n\n### Get Purchases\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-purchases](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/purchases.md#get-purchases)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Purchase\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Purchase Categories\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-purchases-categories](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/purchase_categories.md#get-purchasescategories)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Purchase Category\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Schedules\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| options | for example: { from: '2018-02-01' } | No | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\nOptions reference:\u003cbr\u003e\n[#get-schedules](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/schedules.md#get-schedules)\u003cbr\u003e\n[Sorting](#sorting)\n\n```javascript\n/* Async/Await */\nconst schedules = await mycompany.getSchedules()\n\nconst schedules = await mycompany.getSchedules({\n  from: '2017-01-02'\n  to: '2017-01-02'\n})\n\n/* Promise */\nmycompany.getSchedules()\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\nmycompany.getSchedules({\n  from: '2017-01-02'\n  to: '2017-01-02'\n})\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getSchedules((err, response) =\u003e {\n  console.log(err, response)\n})\n\nmycompany.getSchedules({\n  from: '2017-01-02'\n  to: '2017-01-02'\n}, \n(err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get Schedule\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| id | for example: 58844  | Yes | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\n```javascript\n/* Async/Await */\nconst schedule = await mycompany.getSchedule(58844)\n\n/* Promise */\nmycompany.getSchedule(58844)\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getSchedule(58844, (err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n---\n\n### Get Units\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-units](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/units.md#get-units)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get Unit\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get Users\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| options | | No | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\nOptions reference:\u003cbr\u003e\n[#get-users](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/users.md#get-users)\u003cbr\u003e\n[Sorting](#sorting)\n\n```javascript\n/* Async/Await */\nconst users = await mycompany.getUsers()\n\n/* Promise */\nmycompany.getUsers()\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getUsers((err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n### Get User\n\n**Available options:**\n\n| |  | Required | Default |\n| ------ | ----------- | ------ | ----- |\n| id | for example: 58844  | Yes | None |\n| cb | optional callback (in case you don't want to use promises) | No | |\n\n```javascript\n/* Async/Await */\nconst user = await mycompany.getUser(58844)\n\n/* Promise */\nmycompany.getUser(58844)\n.then((results) =\u003e {\n  console.log(results)\n})\n.catch((err) =\u003e {\n  console.log(err)\n})\n\n/* Callback */\nmycompany.getUser(58844, (err, response) =\u003e {\n  console.log(err, response)\n})\n```\n\n---\n\n### Get User Employments\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-user-employments](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/employments.md#get-usersemployments)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get User Employment\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n### Get User Holidays\n\nCall as shown above in the [API Reference](#api-reference).\n\nOptions reference:\u003cbr\u003e\n[#get-user-holidays](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/sections/holidays.md#get-usersholidays)\u003cbr\u003e\n[Sorting](#sorting)\n\n### Get User Holiday\n\nCall as shown above in the [API Reference](#api-reference).\n\n---\n\n## Sorting\n\nYou can sort your results by adding ``sort_by``\nto your options object.\n\n```\nsort_by: 'title'\nsort_by: 'date desc'\n```\n\nRead more: [#sorting](https://github.com/hundertzehn/mocoapp-api-docs/blob/master/README.md#sorting)\n\n---\n\n## Setup / Install\n\nUse `npm install @burnett01/node-moco` \n\n```javascript\nconst Moco = require('@burnett01/node-moco')\n```\n\n---\n\n## Unit-Tests\n\nThe testing-framework used in this module is [Mocha](https://github.com/mochajs/mocha) with the BDD / TDD assertion library [Chai](https://github.com/chaijs/chai).\n\n* test/test.default.js | [Source](../master/test/test.default.js)\n\nOutput using [Mocha](https://github.com/mochajs/mocha) `list` reporter:   \n\n\u003cimg src=\"https://i.imgur.com/goybgOy.png\" /\u003e\n\nDefault reporter: `list`\n\n### Make\n\n```make test```\n\n### NPM\n\n```npm test```\n\n---\n\n## Contributing\n\nYou're very welcome and free to contribute. Thank you.\n\n---\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnett01%2Fnode-moco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburnett01%2Fnode-moco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnett01%2Fnode-moco/lists"}