Defined many API methods, implemented event_get and event_create