adp
Version:
Toolkit for interfacing with ADP Marketplace API's
27 lines (19 loc) • 589 B
Markdown
### ADP NodeJS SDK
This is a toolkit to streamline application development on the ADP Marketplace.
```sh
$ npm install adp
```
In your index.js
```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
```