我正在使用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查询,如何向表中插入行? 你能解释一下那一刻吗?在
在:http://code.google.com/p/fusion-tables-client-python/上有一个非常简单的融合表客户端python代码,我成功地使用了它。在
相关问题 更多 >
编程相关推荐