Hmmm. I've used curl before, but not with Apps. I'm trying to follow
http://code.google.com/apis/gdata/articles/using_cURL.html but keep
getting an "Invalid Token" despite running the ClientLogin URL first,
and then the one with the Authorization header. (My Auth token from
the first step is much longer than the example and is different every
time I run it.)
curl
https://apps-apis.google.com/accounts/ClientLogin --data-
urlencode Email=
us...@mydomain.com --data-urlencode Passwd=secret -d
accountType=GOOGLE -d source=Google-cURL-test -d service=lh2
curl --silent --header "Authorization: GoogleLogin
Auth=very_long_string" "
https://apps-apis.google.com/a/feeds/group/2.0/
mydomain.com"
Here's the error from the python test I ran:
Traceback (most recent call last):
File "groups.py", line 8, in <module>
client.RetrieveAllGroups()
File "/usr/lib/python2.6/site-packages/gdata/apps/groups/
service.py", line 164, in RetrieveAllGroups
return self._GetPropertiesList(uri)
File "/usr/lib/python2.6/site-packages/gdata/apps/service.py", line
510, in _GetPropertiesList
property_feed = self._GetPropertyFeed(uri)
File "/usr/lib/python2.6/site-packages/gdata/apps/service.py", line
507, in _GetPropertyFeed
raise gdata.apps.service.AppsForYourDomainException(e.args[0])
gdata.apps.service.AppsForYourDomainException: {'status': 403, 'body':
'<HTML>\n<HEAD>\n<TITLE>Invalid domain.</TITLE>\n</HEAD>\n<BODY
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Invalid domain.</H1>\n<H2>Error
403</H2>\n</BODY>\n</HTML>\n', 'reason': 'Invalid domain.'}
Mike
On May 4, 11:21 am, Claudio Cherubino <
ccherub...@google.com> wrote:
> Can you please try performing the same request with cURL?
>
>
http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_...