0.0.1 • Published 8 years ago

adp v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

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