googlearchive / storage-getting-started-javascript

This is a simple web-based example of calling the Google Cloud Storage API in JavaScript.
83 stars 38 forks source link

Getting Error "Access Not Configured " . #4

Open sahushailesh1985 opened 11 years ago

sahushailesh1985 commented 11 years ago

With my GCS credential I am getting following error

domain "usageLimits"

message "Access Not Configured"

reason "accessNotConfigured"

jsimonweb commented 11 years ago

Check your settings in the API Console. Click the "Services" tab and confirm that you've activated "Google Cloud Storage" and "Google Cloud Storage JSON API".

In your index.html file you should have your project's specific values from the API Console set as the values for projectId, clientId, and apiKey.

For projectId click the "Overview" tab in the API Console. Copy your project number from there.

For clientId click the "API Access" tab in the API Console. Confirm that you've created a "Client ID for web applications". Copy the complete value for "Client ID:" If you don't see a "Client ID for web applications" item listed on the "API Access" page then you'll need to create one by clicking the "Create another client ID" button.

For the apiKey also look under the "API Access" tab in the API Console. It should be near the bottom of the page under a section titled: "Simple API Access". You should see "Key for browser apps (with referers)". Copy the value for "APIKey:". If you don't see a "Key for browser app" item listed in the "Simple API" section then you'll need to create one by clicking the "Create new Browser key" button.

One last thing to confirm - click the "Team" tab in the API Console which should take you to the Google Cloud Console Teams page. The Google Account you're using to view the sample should be listed with a permission of "Is owner" or "Can edit".