Sign in to participate
Be Kind, Be Helpful
Ask a question, answer a question, and get to know the fine people in the Harvest community.
Not possible to get *all* time entries?
Hi, I might be missing it totally here, but I can’t find a way to get all the time entries for the entire account anywhere. Not even for a period. The only way I can find which is remotely what I mean is getting all entries for a project for a timeframe. This would mean i need to re-call the same service for each and every project if I want to be able to do some reporting.
Is there a different way? Tnx,
Ben
You are correct. We limit reports API calls to by-project and by-user calls to protect the health of the Harvest app servers. Arbitrary reports across an entire account can be very intensive, especially for larger accounts.
I suggest updating your data with a job once or twice daily rather than making the calls inline with whatever service you are providing.
This is the API documentation you’ll want to reference:
That report is a great alternative to asking for multiple /daily entries, thanks.
Perhaps I’m missing something, however. I can request JSON output for the /people resource and get it, but if I ask for /people/entries with JSON, I get back XML:
curl -u ‘me@example.com:password’ \
-H ‘Accept: application/json’ \
-H ‘Content-Type: application/xml’ \ ‘https://mycompany.harvestapp.com/people/entries...;
<?xml version=“1.0” encoding=“UTF-8”?>
…
I’m guessing all resources support XML output, but which resources support JSON?
Thanks
Oops Json support on the Reporting API was an accidental omission here. We have rectified this now, let me know if you hit other obstacles.