noobj / habit_tracker

🧘 Track your habits via Toggl 🏃
MIT License
0 stars 0 forks source link

Fetch data using Toggl api and insert into mysql #1

Closed noobj closed 3 years ago

noobj commented 3 years ago
  1. Set up Models, Migrations.
  2. Use Laravel queues to fetch and insert the data.
noobj commented 3 years ago

https://docs.guzzlephp.org/en/stable/

Php Http client

noobj commented 3 years ago

Model: dail_summaries (id, date, project_id, duration)

projects (id, name) - Need a command for fetching projects as well

noobj commented 3 years ago

Run the script daily, update 3 days' data before hand(including today).