Updated all samples to use 'service' as the object returned from build()
diff --git a/samples/oauth2/latitude/latitude.py b/samples/oauth2/latitude/latitude.py
index 56df083..18c7a9d 100644
--- a/samples/oauth2/latitude/latitude.py
+++ b/samples/oauth2/latitude/latitude.py
@@ -38,7 +38,7 @@
http = httplib2.Http()
http = credentials.authorize(http)
- p = build("latitude", "v1", http=http)
+ service = build("latitude", "v1", http=http)
body = {
"data": {
@@ -50,7 +50,7 @@
}
}
try:
- print p.currentLocation().insert(body=body).execute()
+ print service.currentLocation().insert(body=body).execute()
except CredentialsInvalidError:
print 'Your credentials are no longer valid.'
print 'Please re-run this application to re-authorize.'