The Health API currently doesn't support profile creation.  There is a
related feature request in our issue tracker that you may want to star
and/or add comments to.

http://code.google.com/p/gdata-issues/issues/detail?id=1271&q=API%3DHealth

It would definitely help us to prioritize future enhancements if you
could add some information to the request.

Thanks!

Paul


On Nov 24, 3:16 pm, gpguerra <[email protected]> wrote:
> Hi,
> I'm trying to create a new profile from the app im creating for
> iPhone.
> I searched all the web and not found one example for objective-c
> language. Is that possible?
>
> I tried this but with no sucess.
>
>         GDataEntryHealthProfile *profileEntry =
> [GDataEntryHealthProfile alloc];
>         GDataTextConstruct *title = [[GDataTextConstruct alloc] init];
>         [title setStringValue:@"John"];
>         [profileEntry setTitle:title];
>
>        NSURL *feedURL = [GDataServiceGoogleHealthSandbox
> profileListFeedURL];
>
>        GDataServiceTicket *ticket;
>
>         ticket = [mHealthService fetchEntryByInsertingEntry:profileEntry
>                                                          forFeedURL:feedURL
>                                                            delegate:self
>                                           
> didFinishSelector:@selector(addEventTicket:addedEntry:error:)];
>
> do I need to create some ccr data? if yes, I need just the name ,
> birth date, sex and race.
> Thanks in advance.

-- 
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.

Reply via email to