Okay so I have been trying to wrap my head around google python api client library. This is what I have:
Oauth2Credentials class -> Provides the method refresh() which allows for re-issue of a new access_token. In the client this is the only publicly visible method to reissue a fresh token. Further if a http request is authorized using an instance of this class the refresh is handled implicitly. Also, this instance should ideally not be created directly, but through the flow object. https://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client.client.OAuth2Credentials-class.html
AccessTokenCredentials class -> Accepts only the access_token and can only be used to validate the http requests. Does not provide the refresh method. https://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client.client.AccessTokenCredentials-class.html
How do I use a refresh token to get a new access_token when it Oauth2Credentials instance is typically not to be created? Should I be storing the credentials object when first generated? If so how?