title: Simplest way authenticate with Python Google APIs to access own accounts
body: <p><strong>The main use case is using IPython as CLI to my own Google accounts. What I am really after is minmizing the fussing around between starting the IPython shell and actually issuing usefull calls against the API.</strong></p>
  
  <p>The docs for authenticating with Google APIs focus on setting up application which other user will use to access their data.
  This leads to a lengthy Oauth dance involving a browser in order to allow other users to authenticate without compromising their credential.
  However, I do not mind sharing my private credentials with myself. I am not planning on sharing the code. If I did share the code I would use something like <code>dotenv</code> to separate the credentials from the code.</p>
  
  <p>Twitter provides developers a second set of credentials
  that allows developers to access their own accounts for testing.
  Thus it is possible to access ones own account programmatically
  by just providing to sets of credentials: the developer credentials that allow the calls to the API and the other credentials that grant access to the developers own data. For <a href="https://github.com/sixohsix/twitter" rel="nofollow noreferrer">example</a>:</p>
  
  <pre><code>from twitter import *
  
  t = Twitter(
      auth=OAuth(token, token_key, con_secret, con_secret_key))
  
  # Get your "home" timeline
  t.statuses.home_timeline()
  
  # Update your status
  t.statuses.update(
      status="Tweeting from Python")
  </code></pre>
  
  <p>Where <code>con_secret*</code> are the developer credentials and
  and <code>token*</code> are the account access credentials.</p>
  
  <ul>
  <li>How can I do something equally simple with Google APIs?</li>
  <li>Where can I get  credentials to access my own account?</li>
  <li>How would I use them in Google API?</li>
  </ul>
  
  <p>As an example what would be the simplest procedure for retrieving the contents from one of my own Youtube playlists?</p>
  
  <hr>
  
  <p>I have com to think that a Python headless browser library could be give me what I need. I have asked a related question on SE Software Recommendations
  <a href="https://softwarerecs.stackexchange.com/questions/35744/python-headless-browser-library-for-oauth2-authentication-from-ipython-console">https://softwarerecs.stackexchange.com/questions/35744/python-headless-browser-library-for-oauth2-authentication-from-ipython-console</a></p>