diffbot-php-client
diffbot-php-client copied to clipboard
Account API
There's a new API: https://www.diffbot.com/dev/docs/account/
Consider making a fancy default dashboard.
API is too simple for a dedicated API class, but an Account entity could be useful, especially if combined with the recently added Carbon to get date ranges, sorting, and who knows what else.
Todo:
- Write AccountTest
- Build Account entity
- Use Carbon to add ranges, filtering, sorting, etc.
For the Dash, use Vue.js:
- Password field in which to add token. "Show plain" button.
- "Remember token" button saves token to localStorage and uses it on every subsequent visit
- All data for days before current day gets cached in localStorage - past is immutable, so saving it for further processing of already cached date ranges will be ultra fast. Checking for existing range will need to be done in JS.
- Add animated charts with high scores (highest API calls count)
- Add list of invoices (ask team for some mock invoices on account), sum by year?