A Nubank API in NodeJS
Routes • How To Use • Credits •
POST /user/:token
send a json
{
"cpf": "__cpf",
"pass": "__pass"
}
and get the token in access_token
{
"response": {
"access_token": "__token",
"token_type": "bearer",
...
GET /bill/:token
{
"data": {
"return your bills"
}
}
GET /purchases/:token
{
"data": {
"return your purchases"
}
}
GET /me/:token
{
"data": {
"return your resumed info"
}
}
GET /account/:token
{
"data": {
"return your complete info"
}
}
GET /events/:token
{
"data": {
"return your events"
}
}
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/nulldreams/node-bank.git
# Go into the repository
$ cd node-bank
# Install dependencies
$ npm install
# Run the app
$ npm start
This software uses some open source packages.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
GitHub @nulldreams ·