Hi John,
I'm currently looking into that and facing the same error. I am
consulting with some people internally, I'll get back to you as soon
as I can.
Cheers,
Nicolas
On Dec 2, 1:43 am, "John M." <[EMAIL PROTECTED]> wrote:
> Hi,
> I keep getting:
>
> gdata.service.RequestError: {'status': 401, 'body': '<HTML>\n<HEAD>
> \n<TITLE>Token invalid - AuthSub token has wrong scope</TITLE>\n</HEAD>
> \n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Token invalid - AuthSub
> token has wrong scope</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n',
> 'reason': 'Token invalid - AuthSub token has wrong scope'}
>
> when I run:
> gb_client = gdata.base.service.GBaseService()
>
> gb_client.SetAuthSubToken('CJzv7LLTCxDhssSR-_____8B','http://www.google.com/base')
> xmlRes = gb_client.InsertItem(item, url_params={'dry-run':
> 'true'})
>
> I am using gdata.py-1.2.2 and I have been able to get a AuthSub
> session Token and I can verify it using AuthSubTokenInfo and
> everything is good and it says:
> Target=www.abc.com
> Secure=false
> Scope=http://www.google.com/base
>
> url = 'https://www.google.com/accounts/AuthSubTokenInfo'
> req = urllib2.Request(url, None)
> req.add_header('Authorization', 'AuthSub token="CJzv7LLTCxDhssSR-
> _____8B"')
> response = urllib2.urlopen(req)
> session_token=response.read()
> print session_token
>
> Can somebody help me out?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---