Most Google APIs currently require the OAuth 2 token, and so far it is only available through the streaming input stream that gtm-oauth2 provides. Some older Google APIs support the ClientLogin protocol, in which the username and password are supplied directly by the application, but the newer APIs do not.
Remember that hardcoding any account authorization (especially the account password) in the application binary is a security risk and this is bad practice.
source share