Add ability to start lecture and redirect to recorded content.

This commit is contained in:
2023-10-04 15:00:23 +01:00
parent 0e0d26d06d
commit 7c96b2c2bc
11 changed files with 69 additions and 5 deletions
+13
View File
@@ -10,4 +10,17 @@ module Toggl
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' }
).body)
end
def self.start_time_entry(description:, project_id:)
HTTParty.post(
"http://localhost:3005/start_time_entry",
body: {
"created_with": "Attendance Tracker",
"description": description,
"duration": -1,
"project_id": project_id,
}.to_json,
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' }
)
end
end