Retrieve Entries For The Current Day
GET https://YOURACCOUNT.harvestapp.com/daily
Note: You can pass the parameterslim=1
to returnonly tracked time, and no assignments.
GET https://YOURACCOUNT.harvestapp.com/daily?slim=1
Retrieves entries for today paired with the projects and tasks that can be added to the timesheet by the requesting user.
Retrieve Entries For A Specific Date
GET https://YOURACCOUNT.harvestapp.com/daily/{DAY_OF_THE_YEAR}/{YEAR}
Optionally you may ask for entries for a given day by passing in date composed by the year and the day of the year (1…366).
Note: To check this for another user, add?of_user={USER_ID}
to your request.
GET https://YOURACCOUNT.harvestapp.com/daily?of_user={OTHER_USER_ID}
HTTP Response: 200 OK
Examples
Example request in
Postman
type= "date" > Wed, 27 Jan 2016type= "integer" > 420923769type= "date" > 2016-01-27type= "integer" > 508343 Apple<)按ct_id> 5198193<项目> 14775 2892243 Backend Programmingtype= "float" > 2.00type= "float" > 2.00< / hours_without_timer > type= "datetime" > Wed, 27 Jan 2016 21:30:00 +0000type= "datetime" > Wed, 27 Jan 2016 21:30:00 +0000 12:00pm 2:00pm<)按cts/>
{ "day_entries" : [ { "project_id" : "5198193" , "project" : "14775" , "user_id" : 508343 , “spent_at” : "2016-01-27" , "task_id" : "2892243" , "task" : "Backend Programming" , "client" : "Apple" , "id" : 420923769 , "notes" : "" , "started_at" : "12:00pm" , "ended_at" : "2:00pm" , "created_at" : "2016-01-27T21:30:00Z" , "updated_at" : "2016-01-27T21:30:00Z" , "hours_without_timer" : 2 , "hours" : 2 } ], "for_day" : "2016-01-27" }
Retrieving A Single Entry
GET https://YOURACCOUNT.harvestapp.com/daily/show/{DAY_ENTRY_ID}
HTTP Response: 200 OK
Examples
type= "integer" > 400149722type= "date" > 2015-11-24type= "integer" > 1152027 Apple<)按ct_id> 5198193<项目> 14775 2892243 Backend Programmingtype= "float" > 4.68type= "float" > 4.68< / hours_without_timer > type= "datetime" > Tue, 24 Nov 2015 19:59:45 +0000type= "datetime" > Tue, 24 Nov 2015 23:00:54 +0000
{ "project_id" : "5198193" , "project" : "14775" , "user_id" : 1152027 , “spent_at” : "2015-11-24" , "task_id" : "2892243" , "task" : "Backend Programming" , "client" : "Apple" , "id" : 400149722 , "notes" : null , "created_at" : "2015-11-24T19:59:45Z" , "updated_at" : "2015-11-24T19:59:45Z" , "hours_without_timer" : 2 , "hours" : 2 }