Add ability to start lecture and redirect to recorded content.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user