Implementation of the Google OAuth based API