MadKudu/node-hubspot

View on GitHub
lib/owner.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Owner {
  constructor(client) {
    this.client = client
  }

  get(options) {
    return this.client.apiRequest({
      method: 'GET',
      path: '/owners/v2/owners',
      qs: options,
    })
  }

  getById(id, options) {
    return this.client.apiRequest({
      method: 'GET',
      path: `/owners/v2/owners/${id}`,
      qs: options,
    })
  }
}

module.exports = Owner