IMPORTANT: This SDK should be used server-side only. Using it in a browser would expose your API Key.
npm install fullcontact-node-sdk --save
API Documentation can be found at https://docs.fullcontact.com/
JSDocs can be found in docs.md
var fullcontact = require('fullcontact-node-sdk')({
apiKey: '<API Key>',
userAgent: '<AppName/Version>'
});
All Enrich APIs can be found under the enrich
property on the client.
const myLookup = async () => {
try {
const res = await fullcontact.enrich.person.enrich({ email: 'bart@fullcontact.com' })
//do something with res
} catch(e) {
//handle error
}
}
To run tests:
npm test