Try with health, not with k9. I done with health and it is woking very good ;)
On 12 iul., 15:33, ChristianSchaefer <[email protected]> wrote: > Hi, > > I'm working on a similar problem as far as I understand. So the main > idea is to have a doctor's account and profile and several independent > patient profiles. The patients now share their account with the > doctor. On google.com/h9 I can switch to those patients. Yet when > trying to retrieve a list of the profiles using the code below it > fails with GDataRequestException {"Execution of request > failed:https://www.google.com/h9/feeds/profile/list/"}. > > public class DataRepository > { > BaseHealthService service; > HealthQuery profileQuery; > > public DataRepository(string token) > { > GAuthSubRequestFactory authFactory = new > GAuthSubRequestFactory("weaver", "exampleCo-exampleApp-1"); > authFactory.Token = token; > > service = new H9Service(authFactory.ApplicationName); > service.RequestFactory = authFactory; > > profileQuery = new > HealthQuery(H9Service.DefaultProfileFeed); > profileQuery.Digest = true; > } > > public List<Profile> getProfiles() > { > List<Profile> result = new List<Profile>(); > HealthQuery query = new > HealthQuery(H9Service.ProfileListFeed); > HealthFeed feed = service.Query(query); //Exception thrown > here > foreach (HealthEntry entry in feed.Entries) > { > string a = entry.CCR.InnerXml; > } > return result; > } > //... > > } > > I would really appreciate any helping ideas. > > Regards > > Chris -- 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.
