{"_id":"@bullhorn/bullhornjs","_rev":"34-afb7879b0a9db5eafe5d5126d9d4b8ec","name":"@bullhorn/bullhornjs","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@bullhorn/bullhornjs","version":"1.1.0","author":{"name":"Bullhorn, Inc."},"_id":"@bullhorn/bullhornjs@1.1.0","maintainers":[{"name":"bvkimball","email":"bvkimball@gmail.com"}],"homepage":"https://github.com/bullhorn/bullhornjs#readme","bugs":{"url":"https://github.com/bullhorn/bullhornjs/issues"},"dist":{"shasum":"ab76f48ec1819c3126b07136ab9f86933c34a0fd","tarball":"https://registry.npmjs.org/@bullhorn/bullhornjs/-/bullhornjs-1.1.0.tgz","integrity":"sha512-M3/IbPJXrHtQs472iBt8fonpydSv6aHgJDQ0WGiVOy0guycqkos6zibChUKkLWy3JTryGjT27Vda9U3A/E+VZg==","signatures":[{"sig":"MEUCIQCG8tYCppUdqLJhlTEfTOza4ud0DCVyXhs57bAqVekbdQIgR3mNZFiHT9i5pKW8UhyJhhzYxXm7tJtZxslVwBfH/e4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"testDirectoryName":"test","testFileExtensions":["js"],"moduleFileExtensions":["js","json"],"unmockedModulePathPatterns":["bullhornjs"]},"main":"lib/index.js","_from":".","build":2150,"_shasum":"ab76f48ec1819c3126b07136ab9f86933c34a0fd","engines":{"npm":">= 3","node":">= 4.2.1"},"gitHead":"b8ef524c9987865b804438b7d6d1317f1554ee7e","scripts":{"test":"npm run compile && jest","bundle":"rollup -c rollup.config.js","compile":"babel -d lib/ src/","prepublish":"npm run compile && npm run bundle"},"_npmUser":{"name":"bvkimball","email":"bvkimball@gmail.com"},"repository":{"url":"git+ssh://git@github.com/bullhorn/bullhornjs.git","type":"git"},"_npmVersion":"3.10.9","description":"Javascript library to conviently connect to the Bullhorn REST Api.","directories":{},"_nodeVersion":"6.9.2","publishConfig":{"registry":"https://registry.npmjs.org"},"devDependencies":{"jest":"^19.0.2","babel":"^6.23.0","rollup":"^0.25.8","babelify":"^7.3.0","jest-cli":"^0.8.2","babel-cli":"^6.24.0","babel-core":"^6.24.0","babel-jest":"^6.0.1","browserify":"^12.0.1","babel-runtime":"^6.23.0","jshint-summary":"^0.4.0","babel-preset-es2015":"^6.24.0","regenerator-runtime":"^0.10.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^0.2.0","rollup-plugin-node-resolve":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/bullhornjs-1.1.0.tgz_1490891409785_0.4919810045976192","host":"packages-12-west.internal.npmjs.com"}},"1.1.1":{"name":"@bullhorn/bullhornjs","version":"1.1.1","author":{"name":"Bullhorn, Inc."},"_id":"@bullhorn/bullhornjs@1.1.1","maintainers":[{"name":"bvkimball","email":"bvkimball@gmail.com"},{"name":"jgodi","email":"joshuagodi@gmail.com"}],"homepage":"https://github.com/bullhorn/bullhornjs#readme","bugs":{"url":"https://github.com/bullhorn/bullhornjs/issues"},"dist":{"shasum":"a14861d8b878aa73c7d91a7585ac8ec1f0760db7","tarball":"https://registry.npmjs.org/@bullhorn/bullhornjs/-/bullhornjs-1.1.1.tgz","integrity":"sha512-FpGeqqh6bKZMmwigSyjnCYsCiNJoOLCJuBcvOiM0nZD8g1jnswYEDb9yAeLRrOBBUnvKPc2z3a0KlXAnWBB4wQ==","signatures":[{"sig":"MEYCIQCIRQJ9twgzhJJoNhD01aF8r3NT3tF3knmW/JaYhnb2QwIhANvjehFFN8fN2f2/ndSdRnoY+rMKgYgA68LmZNfQBA2N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"testDirectoryName":"test","testFileExtensions":["js"],"moduleFileExtensions":["js","json"],"unmockedModulePathPatterns":["bullhornjs"]},"main":"lib/index.js","_from":".","build":2150,"_shasum":"a14861d8b878aa73c7d91a7585ac8ec1f0760db7","engines":{"npm":">= 3","node":">= 4.2.1"},"gitHead":"78c545312f48d70a69e38896ca72f430dffb099b","scripts":{"test":"npm run compile && jest","bundle":"rollup -c rollup.config.js","compile":"babel -d lib/ src/","prepublish":"npm run compile && npm run bundle"},"_npmUser":{"name":"bvkimball","email":"bvkimball@gmail.com"},"repository":{"url":"git+ssh://git@github.com/bullhorn/bullhornjs.git","type":"git"},"_npmVersion":"3.10.9","description":"Javascript library to conviently connect to the Bullhorn REST Api.","directories":{},"_nodeVersion":"6.9.2","publishConfig":{"registry":"https://registry.npmjs.org"},"devDependencies":{"jest":"^19.0.2","babel":"^6.23.0","rollup":"^0.25.8","babelify":"^7.3.0","jest-cli":"^0.8.2","babel-cli":"^6.24.0","babel-core":"^6.24.0","babel-jest":"^6.0.1","browserify":"^12.0.1","babel-runtime":"^6.23.0","jshint-summary":"^0.4.0","babel-preset-es2015":"^6.24.0","regenerator-runtime":"^0.10.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^0.2.0","rollup-plugin-node-resolve":"^1.7.3","babel-plugin-external-helpers":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/bullhornjs-1.1.1.tgz_1490968312126_0.9979936636518687","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2017-03-30T16:30:11.704Z","modified":"2026-09-03T13:40:46.129Z","1.1.0":"2017-03-30T16:30:11.704Z","1.1.1":"2017-03-31T13:51:52.945Z"},"bugs":{"url":"https://github.com/bullhorn/bullhornjs/issues"},"author":{"name":"Bullhorn, Inc."},"homepage":"https://github.com/bullhorn/bullhornjs#readme","repository":{"url":"git+ssh://git@github.com/bullhorn/bullhornjs.git","type":"git"},"description":"Javascript library to conviently connect to the Bullhorn REST Api.","maintainers":[{"email":"arajiv@bullhorn.com","name":"arajiv"},{"email":"devnpm@bullhorn.com","name":"bullhorn-dev"},{"email":"tgadre@bullhorn.com","name":"tgadre"},{"email":"haris.iqbal91@gmail.com","name":"hiqbal01"},{"email":"robslabarbera@gmail.com","name":"robslabarbera"},{"email":"tstorch@bullhorn.com","name":"trent-storch-bullhorn"},{"email":"aossi@bullhorn.com","name":"adrian.ossi"},{"email":"dvoegelin@bullhorn.com","name":"dvoegelin"},{"email":"bhavish.pulnah@bullhorn.com","name":"bhav15h-bh"},{"email":"ndickerson@bullhorn.com","name":"ndickerson"},{"email":"jeremy.dobler@bullhorn.com","name":"jdobler"}],"readme":"# BullhornJS\n\nBullhornJS is a micro-library that makes it easy to use the Bullhorn REST APIs in JavaScript applications.\nBullhornJS allows you to easily login into Bullhorn using OAuth, and to manipulate your Bullhorn data using a simple\nAPI.\n\nThis is an early version. I appreciate any feedback, comments, and help if you think this library is useful.\n\n### Key Characteristics\n\n- No jQuery dependency\n- Plain JavaScript\n- Works transparently in the browser\n- Simple API to manipulate data (create, update, delete, upsert)\n- CommonJS format\n\n### Installation\n\n##### NPM\n\n    npm install --save @bullhorn/bullhornjs\n\n##### Bower\n\n    bower install --save bullhornjs\n\n### Usage\n\n1. Initialize\n```\nvar bullhorn = new Bullhorn({\n    BhRestToken: '~BULLHORN_REST_TOKEN~',\n    restUrl: '~BULLHORN_REST_URL~',\n});\n```\n\n2. Check if logged in:\n```\nbullhorn.isLoggedIn()\n    .then(function(success){\n        alert('Login success: ' + success);\n    })\n    .catch(function(error){\n        alert('Error: ' + error.message);\n    });\n```\n\n3. Invoke a function: Search(), Query(), Entity(), Meta():\n```\n// Most functions are all fluent (ie. they return 'this')\nvar job = new Entity('entity/JobOrder').fields('title');\n// the 'fields' function created a getter and setter for 'title'\njob.title = 'My New Job';\njob.save(); //returns a promise\n```\n\n4. Use a convenience method: CandidateSearch(), JobOrder(), ContactMeta(), etc...:\n```\n// This command creates the convenience functions\nBullhorn.initDefaults();\n// Now you can use them\nvar job = new Job().fields('title'); //works the same as above\njob.get(123).then(function(response){\n    console.log('Job Title is ', job.title);\n});\n```\n\n### Sample App\n\nCheck out the demo in the `demo` folder. To run the demo:\n\n```\n> git clone https://github.com/bullhorn/bullhornjs.git\n> cd bullhornjs\n> npm install\n> npm run bundle\n> npm install -g http-server\n> http-server\n```\n\nopen `http://localhost:8080/demo/index.html` in your browser\n\n### Server\n\nBecause the browser should not know your `CLIENT_ID` or `CLIENT_SECRET` your will need to handle the OAuth flow separately then have the server provide the `BhRestToken` and `restUrl` to the client.\n\n### Building\n\nWe build two versions of the source, 1) we create a bundle using [rollup](http://rollupjs.org/) and 2) we compile all the sources separately with babel. All transpiled files are stored in the `lib` directory.\n\n##### Rollup Bundle\n\n    This uses `rollup.config.js` to determine how to rollup the source. The bundle is located in `lib/bundle.js`. Configuration options are available [here](https://github.com/rollup/rollup/wiki/Command-Line-Interface). To create a new bundle:\n\n    npm run bundle\n\n##### Babel Compile\n\n    This uses `.babelrc` to determine how to babel compiles the source. The files are transpiled to the `lib/` directory. Other configuration options are available [here](http://babeljs.io/docs/usage/babelrc/). To rebuild these:\n\n    npm run compile\n\n### Testing\n\nWe use [Jest](https://facebook.github.io/jest/) to run all of our unit test. To run the tests, in the working directory:\n\n    npm test\n","readmeFilename":"README.md"}