hi,
I have uploaded my x.509 certificate to google and tried to clink with
google using following code in php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_Health');
// Util for determining the current URL the web app is running from
function getCurrentUrl() {
$php_request_uri = htmlentities(substr($_SERVER['REQUEST_URI'], 0,
strcspn($_SERVER['REQUEST_URI'], "\n\r")), ENT_QUOTES);
$protocol = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) ==
'on' ? 'https://' : 'http://';
$host = $_SERVER['HTTP_HOST'];
if ($_SERVER['SERVER_PORT'] != '' &&
(($protocol == 'http://' && $_SERVER['SERVER_PORT'] != '80') ||
($protocol == 'https://' && $_SERVER['SERVER_PORT'] != '443'))) {
$port = ':' . $_SERVER['SERVER_PORT'];
} else {
$port = '';
}
return $protocol . $host . $port . $php_request_uri;
}
function generateAuthSubURL() {
$next = getCurrentUrl();
$scope = 'https://www.google.com/health/feeds';
$authSubHandler = 'https://www.google.com/health/authsub';
$secure = 1;
$session = 1;
$authSubURL = Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope,
$secure, $session, $authSubHandler);
// 1 - allows posting notices && allows reading profile data
$permission = 1;
$authSubURL .= '&permission=' . $permission;
return '<a href="' . $authSubURL . '">Link your Google Health
Account</a>';
}
echo generateAuthSubURL();
and got reply
Sharing denied: unregistered provider:
I have successfullytested in h9 environment and got result
I have uploaded certificate but where did I need to give the private key
path to connect with public key?
Is there anything else to do more in original environment than test
environment
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---