I am trying this example from Google, showing "how you can use the Google APIs Client Library for Java to send requests to the Google Cloud Storage JSON API", which lists the content of one bucket. The only difference is that I am using Eclipse (with Maven) on Linux instead of Maven directly. I keep getting the following error message, generated by the line Bucket bucket = getBucket.execute();
:
403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Insufficient Permission", "reason" : "insufficientPermissions" } ], "message" : "Insufficient Permission" }
However, I have read/write access to the project, I am able to inspect the buckets through the developers console and I have been able to access BigQuery through the Java API (although I'm also running into some strange behaviour there, I can detail if necessary). My ultimate goal is to write a script that loads new Datastore backups into BigQuery every day.
Can anyone confirm that the example from Google is working for them?
EDIT: I should add that I have no trouble using the 'APIs exporer' here.