This python code:

auth2token = gdata.gauth.OAuth2Token(client_id=credentials.client_id,
  client_secret=credentials.client_secret,
  scope=SCOPE,
  access_token=credentials.access_token,
  refresh_token=credentials.refresh_token,
  user_agent='sites-test/1.0')


client = gdata.photos.service.PhotosService()
auth2token.authorize(client)

Produces this error:

Traceback (most recent call last):
  File "example1.py", line 42, in <module>
    albums = client.GetUserFeed()
  File "/usr/lib/python2.7/site-packages/gdata/photos/service.py", line 
235, in GetUserFeed
    return self.GetFeed(uri, limit=limit)
  File "/usr/lib/python2.7/site-packages/gdata/photos/service.py", line 
178, in GetFeed
    return self.Get(uri, converter=gdata.photos.AnyFeedFromString)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 1069, in 
Get
    headers=extra_headers)
  File "/usr/lib/python2.7/site-packages/atom/__init__.py", line 93, in 
optional_warn_function
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/atom/service.py", line 186, in 
request
    data=data, headers=all_headers)
  File "/usr/lib/python2.7/site-packages/atom/http_interface.py", line 148, 
in perform_request
    return http_client.request(operation, url, data=data, headers=headers)
TypeError: new_request() takes exactly 1 argument (4 given)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to