We have 2 application one is main application and second is moodle 3.6, we want to trigger a callback from Moodle to our main application when a user starts a course or complete a course, How to implement this functionality.
Thanks in advance.
You may code it along this lines:
course_completed
would be an straightforward one according to your needs. You have a list of events here: https://docs.moodle.org/dev/Event_2#Existing_events .