A bunch of programs to re-post my last week's harvest time sheet.
Create a .env file with these variables:
# Your harvest API token
token=XXXX
# Your harvest account number
account_id=YYYY
To get your token, log in to your harvest app, then go here: https://id.getharvest.com/developers
To get your account ID / account number, go here: https://id.getharvest.com/ -- then hover over or right click and Copy Link
one of the account links and see the last part of the URL. (Just clicking it may cause a redirect to some other URL).
RUST_LOG=info cargo run --bin download # Downloads all the time sheet entries
Date format is: 2021-12-31 (yyyy-mm-dd)
RUST_LOG=info cargo run --bin extract start-date end-date
RUST_LOG=info cargo run --bin map_week new-start-date
RUST_LOG=info cargo run --bin upload