Fixing all references to content(response) to specify response type and then parse the response...e.g.
        ga.data <- fromJSON(httr::content(request,'text'));