I am creating an application in python to read the albums data of
user. It asks user to login but after getting logged in, Its raising
an exception (NonAuthSubToken
) while upgrading session token.

Code I am using is as follows:
  def LoggedIn(self):
    print 'Logging in'
    parameters = cgi.FieldStorage()
    authsub_token = parameters['token'] // also tried
parameters.getvalue('token')
    gd_client = gdata.photos.service.PhotosService()
    gd_client.auth_token = authsub_token
    gd_client.UpgradeToSessionToken() // error is coming on this line

    albums = gd_client.GetUserFeed(kind='album', user='TestRajanG')
    logging.error(albums)
    logging.error(albums.entry) // coming empty []


  def GetAuthSubUrl(self):
    next = 'http://picasa-gadget.appspot.com/loggedin'
    scope = 'http://picasaweb.google.com/data/'
    secure = False
    session = True
    gd_client = gdata.photos.service.PhotosService()
    return gd_client.GenerateAuthSubURL(next, scope, secure, session);

Can any one please suggest me

-- 
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 [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-picasa-data-api?hl=en.

Reply via email to