Is it possible that you don't have the permission to do so with API? These multiple accounts are separated not master parent / child type of profiles.
On Mon, Jul 12, 2010 at 5:33 AM, 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]<googlehealthdevelopers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/googlehealthdevelopers?hl=en. > > -- Bess Ho UI Architect / Developer / Designer iPhone Developer Silicon Valley Web Builder (SVWB) Founder The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. -- 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.
