adp
v0.0.1
Published
Toolkit for interfacing with ADP Marketplace API's
Downloads
101
Maintainers
Readme
ADP NodeJS SDK
This is a toolkit to streamline application development on the ADP Marketplace.
$ npm install adp
In your index.js
var adp = require('adp').config({
key: 'your-adp-credentials',
secret: 'your-adp-secret',
environment: 'local',
callbackURI: 'localhost'
});
// Authenticate user by directing them to adp.loginUrl
// Pass the callback URL parameter to adp.authenticate() to
// complete the o-auth flow **/
var user = adp.authenticate(callbackUrlQueryParameters['code']);
user.passwordReset(); //sends confirmation email to user