HaPi – Harvest API
PHP Wrapper Library for the Harvest API
Harvest users can use the Harvest API to query and utilize information from their Harvest account in their own applications. Currently there is an open-sourced Harvest Ruby wrapper that can be obtained from github. But as I prefer to utilize PHP, I have created the Harvest api PHP Interface (HaPi) library. This Open Source library is licensed under the GNU General Public License v3 license.
The current version of the library is 1.1.0. This release contains support for the full Time Tracking and Extended Rest APIs and requires the user to have cURL support. In addition this version of the library contains the HarvestReports object which can be used to perform additional queries like getActiveProjects and getActiveTimers. Please visit the downloads page to download the latest version of the library.
Very nice tools, thank you!
I just noticed it does not support the “of_user” parameter for createEntry() function / api call.
Andreas:
I haven’t made updates to the HaPi library in some time. I should have some free time in the next couple of weeks to review and I’ll sync it with the current Harvest functionality.
Found a bug. HarvestAPI.php line 1524:
$url = “projects/” . $userAssignment->get(“project-id”) . “/user_assignments/” . $userAssignment->get(“user-id”);
should be:
$url = “projects/” . $userAssignment->get(“project-id”) . “/user_assignments/” . $userAssignment->get(“id”);
[...] to authors of popular Harvest API clients already. Many thanks to Zach Moazeni, Brian Glass and Matthew Denton for helping test their Harvest API clients so far. We will update this post with any update news on [...]