Skip to content

JThobbyist/stashinvest-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial Stash Invest node module

A simple module for interfacing with https://www.stashinvest.com.

Getting Started

Installing

npm install --save stashinvest-node

Usage

Read the full docs in docs.md

const Stash = require('stashinvest-node');

Stash.authenticate({ 
    email: 'you@email.com', 
    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: [...]
// }

Contributing

  1. For this project.
  2. Create a feature branch: git checkout -b feature/my-feature.
  3. Push your branch git push origin feature/my-feature.
  4. Submit a pull request.

Authors

License

This project is licensed under the MIT License.

About

Unofficial API interface for stashinvest.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%