refactor API call to get notifications to work for all event_types being more generic

and clean up