Moving over OAuth 1.0 to use Storage, and updating samples to handle token revocation.
diff --git a/apiclient/ext/file.py b/apiclient/ext/file.py
index 052a91b..be72497 100644
--- a/apiclient/ext/file.py
+++ b/apiclient/ext/file.py
@@ -10,8 +10,10 @@
import pickle
+from apiclient.oauth import Storage as BaseStorage
-class Storage(object):
+
+class Storage(BaseStorage):
"""Store and retrieve a single credential to and from a file."""
def __init__(self, filename):
@@ -29,6 +31,7 @@
f.close()
except:
credentials = None
+ credentials.set_store(self.put)
return credentials