Fix up discovery_extras.py for v0.2beta1 support
This commit is contained in:
@@ -34,10 +34,9 @@ def main():
|
||||
dis = simplejson.load(f)
|
||||
f.close()
|
||||
|
||||
data = dis['data']
|
||||
api = data[data.keys()[0]]
|
||||
version = api[api.keys()[0]]
|
||||
resources = version['resources']
|
||||
api = dis['name']
|
||||
version = dis['version']
|
||||
resources = dis['resources']
|
||||
for res_name, res_desc in resources.iteritems():
|
||||
methods = res_desc['methods']
|
||||
for method_name, method_desc in methods.iteritems():
|
||||
|
||||
@@ -28,7 +28,7 @@ def main():
|
||||
http = httplib2.Http()
|
||||
http = credentials.authorize(http)
|
||||
|
||||
p = build("buzz", "v1", http=http)
|
||||
p = build("buzz", "v1", http=http, developerKey="AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0")
|
||||
activities = p.activities()
|
||||
|
||||
# Retrieve the first two activities
|
||||
|
||||
Reference in New Issue
Block a user