request_ga function

Handler for API requests from Google Analytics