Removed echo from getPublicEvents
Added handling data in REST call