title: Google AppEngine to Fusion Tables with Service Accounts
body: <p>Late to the game on migrating to the /v1 Fusion Table API but no holding off any longer.</p>
  
  <p>I'm using Python on AppEngine and trying to connect to Google Fusion Tables with Google Service Accounts (the more complicated cousin of OAuth2 for server side apps that uses JSON Web Tokens)</p>
  
  <p>I found another question that pointed me to some documentation for using Service Accounts with Google Prediction API.
  <a href="https://stackoverflow.com/questions/10338497/fusion-table-and-google-service-accounts">Fusion Table and Google Service Accounts</a></p>
  
  <p>So far I've got</p>
  
  <pre><code>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() # &lt;-- ERROR 401 invalid credentials here
  </code></pre>
  
  <p>Does anyone have an example of connecting to Fusion Tables on AppEngine using Service Accounts they might be able to share? Or something nice online?</p>
  
  <p>Thanks</p>