OAuth part has to rely on Google API Javascript library...