Hello Yoyo,

Authenticating using localhost is possible, but only when accessing
the H9 sandbox system using non-sercure AuthSub and not when accessing
the production Health system.  For accessing the production system,
you must get a domain name for your server and register it with
Google.  You can find documentation on secure/registered vs. non-
sercure/unregistered AuthSub at the following places:

http://code.google.com/apis/gdata/docs/auth/authsub.html#register
http://code.google.com/apis/health/getting_started.html#DomainRegistration

And information on the differences between Health and H9 at:

http://code.google.com/apis/health/getting_started.html#Differences

I took a peek at the Zend PHP code, and you may be able to use non-
secure/unregistered AuthSub for testing on H9 by tweaking the
authenticate function in the HealthClient.php file; although,
additional changes might be necessary.

p...@google


On Apr 29, 3:53 pm, YoYo <[email protected]> wrote:
> Hello all,
>
> I have a problem when I run the health demo (PHP),which are :
> Warning: fopen(HEALTH_PRIVATE_KEY) [function.fopen]: failed to open
> stream:
>
> 1.  No such file or directory in D:\XAMPP\xampp\php\PEAR\Zend\Gdata
> \HttpClient.php  on line 99
>
> 2. Warning: feof() expects parameter 1 to be resource, boolean given
> in D:\XAMPP\xampp\php\PEAR\Zend\Gdata\HttpClient.php on line 101
>
> 3. Warning: fread() expects parameter 1 to be resource, boolean given
> in D:\XAMPP\xampp\php\PEAR\Zend\Gdata\HttpClient.php on line 102
>
> I know there are two parameters that I should change before run Health
> demo from browser which are:
> "Health_PRIVATE_KEY" &  "/path/to/your/rsa_private_key.pem"
> and when I read how can I take them I know that registeration is a
> must. and as I use my localhost so how can I run this demo within
> localhost or on other words how can I get these parameters where I
> use local host? or is it must to get domain name?????
>
> Thanks and Plz any one answer me
>
> -----
> Yoyo
>
> --
> 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 
> athttp://groups.google.com/group/googlehealthdevelopers?hl=en.

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