The python example on the http://code.google.com/apis/health/docs/1.0/developers_guide_python.html have a problem. Fix is:
for entry in profile_list_feed.entry: Best regards, On Feb 21, 2:17 pm, Pedro Ambrósio <[email protected]> wrote: > Dear all, > > Currently I'm testing the python API to retrieve and store information. > I'm using the following example without sucess: > > import gdata.health > import gdata.health.service > > client = gdata.health.service.HealthService(source='yourCo-yourAppName-v1', > use_h9_sandbox=True) > client.ClientLogin('[email protected]', 'XXX') > > profile_list_feed = client.GetProfileListFeed() > > for entry in profile_list_feed: > profile_id = entry.GetProfileId() > profile_name = entry.GetProfileName() > print '%s, %s' % (profile_name, profile_id) > > I'm receiving always this error message: > TypeError: 'ProfileListFeed' object is not iterable > > Something is wrong here, so can someone help me? > > Best regards, -- You received this message because you are subscribed to the Google Groups "Google Health Developers" 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/googlehealthdevelopers?hl=en.
