With Basic Auth, who are your co-workers:
$ curl -H 'Authorization: Basic …' -H 'Accept: application/json' https://example.harvestapp.com/people
> jq 'map(select(.user.is_active)) | map(.user | {first_name: .first_name, last_name: .last_name, id: .id})'
[
{
"id": 1234,
"last_name": "Alice",
"first_name": "Bobsdaughter"
},
{
"id": 2345,
"last_name": "Charlie",
"first_name": "Danielson"
}
]
What's their running timer (if they have one)? Look at Alice:
$ curl -H 'Authorization: Basic …' -H 'Accept: application/json' 'https://example.harvestapp.com/daily?of_user=1234' |
> jq '.day_entries | map(select(.timer_started_at)) | .[].notes'
"Working in a coal mine, going down, down..."