title: Do I have to refresh the oauth2 access_token myself, or
body: <p>I use the Google APIs Client Library for Python (oauth2client app engine). When the access_token expires, do I have to refresh it myself or will it be done by the API?
  Now the access_token expires and is not refreshed! </p>
  
  <p>I use the oauth aware decorator. The access type = offline and the refresh token is inside the credentials.</p>
  
  <p>This is the TokenInfo I have received:</p>
  
  <pre><code>{
   "issued_to": "1002825648120.apps.googleusercontent.com",
   "audience": "1002825648120.apps.googleusercontent.com",
   "user_id": "110738386197429542823",
   "scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email",
   "expires_in": 3540,
   "email": "xxxxxxxxx@gmail.com",
   "verified_email": true,
   "access_type": "offline"
  }
  </code></pre>
  
  <p>If I have to refresh the access_token, is there an easy method in the oauth client API to do that?</p>
  
  <p><strong>UPDATE-1 :</strong></p>
  
  <p>I studied the code of oauth2/client.py. I now think that failing to use decorator.http() results in not refreshing the access token. See this (my other) question:
  <a href="https://stackoverflow.com/questions/12915253/failed-to-authorize-tokeninfo-oauth2-request-using-decorator-http">Failed to authorize tokeninfo oauth2 request using decorator.http()</a></p>
  
  <p><strong>UPDATE-2 : SOLVED :</strong></p>
  
  <p>The problem mentioned above (in UPDATE-1) was solved and also solved this question. The API will try to refresh the access_token (if expired) when calling an authorized http.request. </p>