I've been trying to migrate my project to new API, but I get the following error when trying out an SQL query such as the following:
Here is what gets returned:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
The following query does work, though: https://www.googleapis.com/fusiontables/v1/tables/1bTX-w0Lt6nT8jq4R0q2pwFvuN_X5iPDOKHWFhw/columns?key=myKey
What am I doing wrong?
You also need to make sure the Fusion Table is Exportable.
File → About this table
→ Edit table information
→ Check the "Allow download" checkbox
I started a new project in the API console and using the new API key fixed it, strangely.
来源:https://stackoverflow.com/questions/11273278/403-error-when-making-an-sql-query-for-a-fusion-table