Granary A Ruby wrapper for the Harvest API Early days yet... api = Granary::API.new(:authorization => 'YOUR HARVEST AUTH', :subdomain => 'YOUR HARVEST SUBDOMAIN') project_id = 'THE ID OF A HARVEST PROJECT' from_date = Date.civil(2012, 2, 6).strftime("%Y%m%d") # Monday to_date = Date.civil(2012, 2, 10).strftime("%Y%m%d") # Friday time_entries = api.project_time(project_id, from_date, to_date) # this will fetch all time for the project for the date range specified tt = time_entries.map {|t| Granary::TimeEntry.new t[:day_entry] } # Wrap it into handy object
Project
granary
A Ruby library for the Harvest API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Development
Dependencies
Project Readme