Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 1.6 KB

README.md

File metadata and controls

95 lines (63 loc) · 1.6 KB

skwasha:checkr

A Meteor wrapper for the Checkr API via checkr-api.

Dependencies

  • checkr-api - A node.js wrapper for the Checkr API

TL;DR;

skwasha:checkr exposes Checkr API v1 features to your Meteor application.

Installation

Install using Meteor:

meteor add skwasha:checkr

Quick Start

Put in your server's settings.json:

{
	"private": {
		"Checkr": {
			"apiKey": "<Your Checkr API Key>"
		}
	}
}

and start your server with:

meteor --settings settings.json

API

All of the API categories and methods described in the Checkr API Documentation are available in this wrapper ** server-side only **.

Examples

Callback, server-side/client-side

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;
  }
}

wrapAsync, server-side ONLY

// 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 );

Changelog

v0.1.0

  • Initial release

Copyright and license

Copyright © 2015 Sascha Linn

skwasha:checkr is licensed under the MIT license.