Remove developer key from example and remove **kwargs from service collections methods

This commit is contained in:
Joe Gregorio
2010-10-04 12:46:46 -04:00
parent 5e67117a0a
commit 59cd951fc5
2 changed files with 3 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ def build(serviceName, version, http=None,
def createMethod(theclass, methodName, methodDesc, futureDesc):
def method(self, **kwargs):
def method(self):
return createResource(self._http, self._baseUrl, self._model,
methodName, self._developerKey, methodDesc, futureDesc)

View File

@@ -19,7 +19,7 @@ sys.path.insert(0, os.getcwd())
from apiclient.discovery import build
import httplib2
httplib2.debuglevel = 4
# httplib2.debuglevel = 4
import pickle
import pprint
@@ -31,7 +31,7 @@ def main():
http = httplib2.Http()
http = credentials.authorize(http)
p = build("buzz", "v1", http=http, developerKey='AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0')
p = build("buzz", "v1", http=http)
activities = p.activities()
activitylist = activities.list(max_results='2', scope='@self', userId='@me').execute()
print activitylist['items'][0]['title']