prescottprue/tsheets-sdk

View on GitHub
src/users.js

Summary

Maintainability
A
50 mins
Test Coverage
import cruder from './utils/cruder'
// import cruder, { get } from './utils/cruder'
import { usersEndpoint as endpoint } from './config'

const methods = {}

export default (request, apiKey) =>
  Object.assign(
    {},
    cruder({
      endpoint,
      types: ['get', 'add', 'remove', 'update'],
      request,
      apiKey
    }), // functions that don't have validation
    methods
  )