title: Using EVENTS API in moodle
body: <p>I am new to moodle, I have a requirement where I am trying to use the Events API. I want to call some magento script on the event of a course being created in moodle. So every time a course is created the custom script will be called. As referred from API course_created event is called when a course is created and we have to write some observer to handle the event. But the example is not so clear to me. Can anyone direct me to work with events API with some example.</p>
  
  <p>Any Help will be appreciated.</p>
  
  <p>Thanks in advance!</p>