1.2.6 • Published 3 years ago
clinch-talent v1.2.6
#Clinch Javascript Client
##Getting Started
This Javascript client allows developers to connect to the PageUp Recruitment Marketing API to access their data. In order to use the client you must have a valid PageUp Recruitment Marketing account and valid API keys. The steps to obtain keys can be found on our knowledge portal.
##Using the Module
Install the module:
npm install clinch-talent
Require the module:
var clinchTalent = require('clinch-talent');
Use the module to get candidate data:
var client = new clinchTalent("YOUR-KEY", "YOUR-SECRET");
client.getCandidates(function (error, response, body) {console.log(response.statusCode)}); // Get data for the collection of candidates and log response statusCode
client.getCandidate('candidateId', function (error, response, body) {console.log(JSON.parse(response.body))}); // Get data for an individual candidate using the candidate's ID and log the response body