Finish adding Storage to the OAuth 1.0 client and updated all examples to use file.Storage. No more three_legged_dance.py files anywhere.
diff --git a/samples/latitude/latitude.py b/samples/latitude/latitude.py
index c2ec635..4ff5b03 100644
--- a/samples/latitude/latitude.py
+++ b/samples/latitude/latitude.py
@@ -27,7 +27,8 @@
def main():
- credentials = Storage('latitude.dat').get()
+ storage = Storage('latitude.dat')
+ credentials = storage.get()
if credentials is None or credentials.invalid == True:
auth_discovery = build("latitude", "v1").auth_discovery()
flow = FlowThreeLegged(auth_discovery,
@@ -45,7 +46,7 @@
granularity='city'
)
- credentials = run(flow, 'latitude.dat')
+ credentials = run(flow, storage)
http = httplib2.Http()
http = credentials.authorize(http)