I am trying to use Google Service Accounts to access Fusion table from my AppENgine Java App. This code snippet is used to obtain OAuth access token:
ArrayList<String> scopes = new ArrayList<String>();
scopes.add("https://www.googleapis.com/auth/fusiontables");
DataAccessService fusionTablesService = EnvironmentServic.getEnvironmentService().getService(DataAccessService.class);
String token = AppIdentityServiceFactory.getAppIdentityService().getAccessToken(scopes).getAccessToken();
I was able to successfully obtain access token, but when I am trying to execute CREATE TABLE query i got:
<HTML>
<HEAD>
<TITLE>Login required</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Login required</H1>
<H2>Error 401</H2>
</BODY>
</HTML>
Do service account works with Fusion Tables?