So I'm trying to insert into my Fusion Table from a script located on a google scripts but from a different account and different computer. The account does not know about the Fusion Table and when it tries to run the script that needs to insert the value, it returns a "Forbidden" error
Here's my code to store an e-mail entry
function registration(tableId) {
var email = "test";
var sql = "INSERT INTO " + tableId + " (Email) VALUES (\'" + email + "\');";
var query = FusionTables.Query.sql(sql);
}
It always results in a forbidden if I try to insert it from another drive account. But the weird thing is that a
SELECT * FROM tableId;
Works just fine and pulls everything from the table. What am I doing wrong?