I am confused about one thing here. I have a working page that is intended to read/write from/to a google fusion table. Now, I have this working... but it only works with the email address that I generated the Client_ID from on the Google Cloud Developer Console. I want this application to work with an arbitrary public user. I feel like it has something to do with the Email Address code that was generated with the Client ID for the "Client ID for web application" credential.
See the live version for reference. http://www.bneigher.com/FusionTable/
My code:
// This is for authorizing the table for read (Top of page)
gapi.auth.authorize({
client_id: $scope.clientId,
scope: $scope.scopes,
immediate: $scope.immediate
}, handleAuthResult);
. . .
// This is when a POST is invoked to write
runClientRequest({
path: path,
body: body,
headers: {
'Authorization': 'Bearer ' + $scope.accessToken,
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'POST'
}, callback('insert-data-output'));
What do I need to do to get this to work for... you, for example, to write to the table?
The full code for the logic can be found at http://www.bneigher.com/FusionTable/js/controller.js for reference.
Thanks guys