codler / bullhorn-api

Home Page:https://www.npmjs.com/package/bullhorn-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bullhorn API

Install

npm install --save bullhorn-api

Usage

const bullhorn = new Bullhorn({
  client_id: '',
  client_secret: '',
  username: '',
  password: '',
});

bullhorn.login()
  .then(data => {
    const query = encodeURIComponent('dateAvailable:[20170101 TO 20190101]');
    bullhorn.fetch(`search/Candidate?query=${query}&fields=name`)
      .then(req => {
        return req.json();
      }).then((req) => {
        console.log(req)
      })
  });

About

https://www.npmjs.com/package/bullhorn-api


Languages

Language:TypeScript 100.0%