I have obtained the following (actual values are masked)
    CLIENT_ID= '111111111111-
xxxxxxxxxxxxxxxx.apps.googleusercontent.com'
    CLIENT_SECRET='!@#$%^&*()_+QWERTYUI'
    ACCESS_TOKEN="ya29.AKkjo1298au1ind0ausdj3119jdsa"
    REFRESH_TOKEN="1/lkjoIJo31miohxzobc1o3idaoisdqybdqSA"
    SCOPES = ['http://picasaweb.google.com/data/',]
    USER_AGENT="Mozilla/5.0"


      token = gdata.gauth.OAuth2Token(client_id=CLIENT_ID,
                                  client_secret=CLIENT_SECRET,
                                  scope=SCOPES,
                                  access_token=ACCESS_TOKEN,
                                  refresh_token=REFRESH_TOKEN,
                                  user_agent=USER_AGENT)

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

     when I run  client.GetUserFeed().entry
 I got the following error
  File "build/bdist.macosx-10.6-intel/egg/gdata/photos/service.py",
line 235, in GetUserFeed
  File "build/bdist.macosx-10.6-intel/egg/gdata/photos/service.py",
line 178, in GetFeed
  File "build/bdist.macosx-10.6-intel/egg/gdata/service.py", line
1069, in Get
  File "build/bdist.macosx-10.6-intel/egg/atom/__init__.py", line 93,
in optional_warn_function

  File "build/bdist.macosx-10.6-intel/egg/atom/service.py", line 186,
in request
  File "build/bdist.macosx-10.6-intel/egg/atom/http_interface.py",
line 148, in perform_request
TypeError: new_request() takes exactly 1 argument (4 given)

I am wondering if I did anything wrong.
Also how do I get session token using the api.

Thanks,

Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to google-picasa-data-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to