Add started text to table

This commit is contained in:
2023-10-26 14:21:33 +01:00
parent 9c6dea41f1
commit b0d134fabd
5 changed files with 42 additions and 6 deletions
+7
View File
@@ -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",