A Meteor wrapper for the Checkr API via checkr-api.
- checkr-api - A node.js wrapper for the Checkr API
skwasha:checkr exposes Checkr API v1 features to your Meteor application.
Install using Meteor:
meteor add skwasha:checkr
Put in your server's settings.json:
{
"private": {
"Checkr": {
"apiKey": "<Your Checkr API Key>"
}
}
}
and start your server with:
meteor --settings settings.json
All of the API categories and methods described in the Checkr API Documentation are available in this wrapper ** server-side only **.
Note: The example is using the meteorhacks:async package to wrap calls.
Meteor.methods({
'getCandidates': function getCandidates() {
var candidates = Async.runSync(function(done) {
Checkr.candidates.list(function(err, res) {
done(null, res);
console.log(res);
});
});
return candidates.data;
}
}
// You can pass different parameters on each call
var result = Checkr.call( 'candidates', 'list', {
start: 0,
limit: 25
});
// Do something with your data!
console.info( '[Checkr][candidates][list]: %o', result );
- Initial release
Copyright © 2015 Sascha Linn
skwasha:checkr is licensed under the MIT license.