I am trying to use Google Apps accounts to access a Fusion table from an AppENgine Java application. This piece of code is used to get the 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 get the access token, but when I try to execute the CREATE TABLE request, I got:
<HTML> <HEAD> <TITLE>Login required</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Login required</H1> <H2>Error 401</H2> </BODY> </HTML>
Does a service account work with Fusion tables?
source share