add get_events to the api

Because i needed it and was easy to implement.

happy if it gets accepted.