This is my starter kit for creating command line apps that connect to Google services via OAuth 2.0.  It is coded in Python. and uses a hidden file to 'remember' access and refresh tokens.