A node.js module, which provides an object oriented wrapper for the Guidestar REST API.
Install with the node package manager npm:
$ npm install guidestar
Perform charity check
GuidestarApi = require('guidestar').GuidestarApi;
var guidestar = new GuidestarApi(config.user, config.password, '1');
guidestar.check(ein, function(error, org) {
console.log('509a Status: ' + org.foundation_509a_status);
});
Currently there is no explicit login call necessary as each API call uses Basic Authentication to authenticate.
GuidestarApi options:
user<string>
: The username to log in withpassword<string>
: Keep it secret, keep it safeGuidestar API Version<string>
: Known to work with1
verbose<bool>
: Log some info to the console, usually for debugging
- Other API endpoints other than charity check