Remove developer key from example and remove **kwargs from service collections methods
This commit is contained in:
@@ -152,7 +152,7 @@ def build(serviceName, version, http=None,
|
|||||||
|
|
||||||
def createMethod(theclass, methodName, methodDesc, futureDesc):
|
def createMethod(theclass, methodName, methodDesc, futureDesc):
|
||||||
|
|
||||||
def method(self, **kwargs):
|
def method(self):
|
||||||
return createResource(self._http, self._baseUrl, self._model,
|
return createResource(self._http, self._baseUrl, self._model,
|
||||||
methodName, self._developerKey, methodDesc, futureDesc)
|
methodName, self._developerKey, methodDesc, futureDesc)
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ sys.path.insert(0, os.getcwd())
|
|||||||
from apiclient.discovery import build
|
from apiclient.discovery import build
|
||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
httplib2.debuglevel = 4
|
# httplib2.debuglevel = 4
|
||||||
import pickle
|
import pickle
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ def main():
|
|||||||
http = httplib2.Http()
|
http = httplib2.Http()
|
||||||
http = credentials.authorize(http)
|
http = credentials.authorize(http)
|
||||||
|
|
||||||
p = build("buzz", "v1", http=http, developerKey='AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0')
|
p = build("buzz", "v1", http=http)
|
||||||
activities = p.activities()
|
activities = p.activities()
|
||||||
activitylist = activities.list(max_results='2', scope='@self', userId='@me').execute()
|
activitylist = activities.list(max_results='2', scope='@self', userId='@me').execute()
|
||||||
print activitylist['items'][0]['title']
|
print activitylist['items'][0]['title']
|
||||||
|
|||||||
Reference in New Issue
Block a user