service=build(“fusiontables”,“v1”,http=http)不能g

2024-06-23 18:35:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用common google-api-python-client来访问Fusion Tables API,无法对它做任何有用的操作。在

我读过函数的帮助:

service = build("fusiontables", "v1")
help(service)

得到了这个:

^{pr2}$

但它还是没有给我任何东西。在

我试过sample中的代码

f = file('key.p12', 'rb')
key = f.read()
f.close()

credentials = SignedJwtAssertionCredentials(
    '...',
    key,
    scope='https://www.googleapis.com/auth/fusiontables')
http = httplib2.Http()
http = credentials.authorize(http)

service = build("fusiontables", "v1", http=http)
print(service.table().list().execute())

它给了我“{u'kind”:u'fusiontables\tableList'}”。在

但我还是不明白如何运行SQL查询,如何向表中插入行? 你能解释一下那一刻吗?在


Tags: key函数buildclientapihttptablesservice

热门问题