A Ruby Gem and Command-Line App for getting your account status from autoexpreso.com
- Basic account + balance info
- Latest transactions
There is a Demo API built with this gem available at https://autoexpreso-api.herokuapp.com/account_details
For more information visit the examples/api folder of this repository.
$ gem install autoexpreso
Ruby:
require 'autoexpreso'
ae = AutoExpreso::Client.new
ae.login('tavin@pumarejo.com', 'password')
ae.account_details
In your terminal:
$ autoexpreso --login
**************************************************
AutoExpreso
**************************************************
Enter your account details
Email: tavin@pumarejo.com
Password: **************
Account Details:
{
"currentBalance": 13.5500,
"firstName": "Tavin",
"lastName": "Pumarejo",
"email": "tavin@pumarejo.com",
"transactions": [
{
"transactionDate": "4/27/2020 9:27:34 PM",
"plaza": "Buchanan Eb Ort - 8",
"amount": 0.7000,
"tagNumber": 1337,
"location": "Buchanan Eb Ort - 3",
"isReplenish": false,
"vehicle": {
"brand": "Suzuki",
"model": "Forsa Tres Potes 800",
"year": 1985,
"plate": "TP123",
"axles": 0,
"tagNumber": 0
}
}
]
}
- -l, --login - Log into AutoExpreso
- -j, --json - Return account details as json
- -h, --help - Print help message
- -v, --version - Display the version of AutoExpreso and exit
Examples are available at examples/api
Is it worth it? let me fork it
I put my thing down, flip it and debug it
Ti gubed dna ti pilf nwod gniht ym tup I
Ti gubed dna ti pilf nwod gniht ym tup I