For OAuth2, I request a access token in GAE and set the
'Authorization' header. Example for python:
from google.appengine.api.app_identity import get_access_token
from google.appengine.api.urlfetch import fetch
url = '
https://www.googleapis.com/storage/v1beta1/b/MY_BUCKET/o'
token = get_access_token('
https://www.googleapis.com/auth/devstorage.read_only')[0]
response = fetch(url, None, 'GET', { 'Authorization' : 'Bearer ' +
token }, False, False, None, True)
.....
When I provide a api key it just works fine.
On Tue, Oct 9, 2012 at 9:57 PM, Google Storage Team <
gs-...@google.com> wrote:
> Original Message Follows:
> ------------------------
> From: Rene Bolldorf <
r...@radix.io>
> Subject: Re: [gs-discussion] JSON API
> Date: Wed, 19 Sep 2012 00:05:39 -0700 (PDT)
>
>> My problem is: I use a custom domain and I can't add team members from
>> another domain to my google code project.
>> I created a new group in my google apps control panel and added the GAE
>> service account as member to the group,
>> then I added the new group to my google code project as team member.
>>
>> But it doesn't work and the json api is turned on of course.
>>
>> looks like this:
>>
a...@domain.com (Team)
>> | ->
my...@appspot.gserviceaccount.com (member)
> The error you're reporting is not one of user/service-account
> authentication, but rather one of project authentication. Your placement
> of a service account entry as a team member seems perfectly fine. The
> problem is that when you're accessing the API, without specifying a
> project, as documented at
>
https://developers.google.com/storage/docs/json_api/. Are you using a
> developer key or an OAuth token? If an OAuth token, how are you getting
> the token? You'll need to use one or the other.
>
>>
>> On Tuesday, September 18, 2012 7:54:51 AM UTC+2, Nathan Herring (Google
>> Cloud Storage Team) wrote:
>> >
>> > On Sun, Sep 16, 2012 at 1:33 AM, Rene Bolldorf
> <
r...@radix.io<javascript:>