/v1 Fusion Table API への移行に遅れをとっていますが、これ以上我慢することはありません。
私は AppEngine で Python を使用しており、Google サービス アカウント (JSON Web トークンを使用するサーバー側アプリの OAuth2 のより複雑ないとこ) を使用して Google Fusion Tables に接続しようとしています。
Google Prediction API でサービス アカウントを使用するためのドキュメントを指摘する別の質問を見つけました。 Fusion Table と Google サービス アカウント
これまでのところ、私は持っています
import httplib2
from oauth2client.appengine import AppAssertionCredentials
from apiclient.discovery import build
credentials = AppAssertionCredentials(scope='https://www.googleapis.com/auth/fusiontables')
http = credentials.authorize(httplib2.Http(memcache)) #Http(memcache)
service = build("fusiontables", "v1", http=http)
# list the tables
tables = service.table().list().execute() # <-- ERROR 401 invalid credentials here
共有できるサービス アカウントを使用して AppEngine 上の Fusion Tables に接続する例はありますか? それともオンラインで何かいいこと?
ありがとう