A simple module for interfacing with https://www.stashinvest.com.
npm install --save stashinvest-node
Read the full docs in docs.md
const Stash = require('stashinvest-node');
Stash.authenticate({
email: '[email protected]',
password: 'hunter2'
}).then(console.log);
// {
// success: true,
// status: 200,
// api_key: {
// access_token: '0000000000000000000000000',
// user_id: 123456,
// uuid: 'ffffff-ffff-ffff-ffff-ffffff',
// active: true
// }
// }
Then, once you have your api key
const credentials = {
access_token: '0000000000000000000000000',
user_id: 123456,
uuid: 'ffffff-ffff-ffff-ffff-ffffff',
}
Stash.userDetails(credentials).then(console.log);
// returns
// {
// success: true,
// status: 200,
// user: {...},
// profile: {...},
// accounts: [...]
// }
- For this project.
- Create a feature branch:
git checkout -b feature/my-feature
. - Push your branch
git push origin feature/my-feature
. - Submit a pull request.
- Arron Hunt - Initial work - arronhunt
This project is licensed under the MIT License.