Add started text to table
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
module Toggl
|
||||
def self.current_time_entry
|
||||
JSON.parse(HTTParty.get(
|
||||
"#{TOGGL_PORTAL_URL}/current",
|
||||
headers: { 'Accept' => 'application/json' }
|
||||
).body)
|
||||
end
|
||||
|
||||
def self.entries_for_project(toggl_project_id, start_time:, end_time:)
|
||||
JSON.parse(HTTParty.post(
|
||||
"#{TOGGL_PORTAL_URL}/report",
|
||||
|
||||
Reference in New Issue
Block a user