code to access various Google services using their API's