moysklad
Version:
Библиотека для работы с API сервиса МойСклад
15 lines (10 loc) • 329 B
JavaScript
const have = require('../have')
module.exports = function DELETE(...args) {
const { path, options = {} } = have.strict(args, [
{ path: 'str or str arr', options: 'opt Object' },
have.argumentsObject
])
const url = this.buildUrl(path)
return this.fetchUrl(url, { ...options, method: 'DELETE' })
}