Hello,
I'm building a desktop application to see if our product (an EMD/EPD)
system can interact with Google Healt. Sofar I managed connections
with Google Calender with succes!
The problem is that I can't connect to get the user profile. This is
my code sofar:
Private Sub cmdLOGIN_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdLOGIN.Click
_GoogleHealthService = New HealthService
(Application.Current.ToString)
_GoogleHealthService.setUserCredentials(txtUSERNAME.Text,
txtPASSWORD.Text)
_GoogleHealthToken =
_GoogleHealthService.QueryAuthenticationToken()
GET_USER_PROFILE()
End Sub
Private Sub GET_USER_PROFILE()
Dim profileQuery As New HealthQuery("https://www.google.com/
health/feeds/profile/default/")
profileQuery.Digest = True
Try
Dim feed As HealthFeed = _GoogleHealthService.Query
(profileQuery)
For Each [ENTRY] As HealthEntry In feed.Entries
Dim ccr As XmlNode = [ENTRY].FindExtension
("ContinuityOfCareRecord", "urn:astm-org:CCR")
If Not ccr Is Nothing Then
Debug.WriteLine("<pre>")
Dim sw As New StringWriter
Dim xw As New XmlTextWriter(sw)
xw.Formatting = Formatting.Indented
ccr.WriteTo(xw)
Debug.WriteLine(sw.ToString)
Debug.WriteLine("</pre>")
End If
Next
Catch ex As GDataRequestException
MsgBox(ex.ResponseString)
End Try
End Sub
I get te error: Cannot retrieve Profile Key for URI null and AS null
Can someone please help me out here?
With best regards,
Alex van der Lans
MI Consultancy
www.miconsultancy.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---