UNPKG

indeed-jobs-api

Version:

node.js library for indeed jobs search api

20 lines (14 loc) 457 B
var jobSearch = require('./api/search.js'), getJobs = require('./api/getjobs.js'); var missingPublisherIdError = "A publisher id is required!"; var domain = "api.indeed.com/ads"; module.exports = function (publisherId) { if (!publisherId) throw missingPublisherIdError; this.JobSearch = function () { return new jobSearch(domain, publisherId); }; this.GetJob = function () { return new getJobs(domain, publisherId); }; };