I have an account and a PHR in H9.  I can push pull data with 'Mt
Tabor online'.

Then, with my MS Win-form app, I get a successful 'ClientLogin'; it
returns 'authToken', captured into 'mAuthToken'  used in code below.

Finally, attempt to get default profile yields error. Here is that
code.

        Dim authFactory As GAuthSubRequestFactory = New
GAuthSubRequestFactory("weaver", "MyCompany-test01-v10")
        Dim appName As String = authFactory.ApplicationName
        Dim service As HealthService = New HealthService(appName)
        service.RequestFactory = authFactory
        service.SetAuthenticationToken(mAuthToken)

        Dim profileQuery As HealthQuery = New HealthQuery()
        Dim uri As Uri = New Uri("https://www.google.com/h9/feeds/
profile/default")
        profileQuery.Uri = uri
        profileQuery.Digest = True

        Try
            Dim feed As HealthFeed = service.Query(profileQuery) 'THIS
FAILS!

            Catch ex as exception:
'yields:
ex.message:
            Specified value has invalid CRLF characters. Parameter
name: value
ex.stackTrace:
            at System.Net.WebHeaderCollection.CheckBadChars(String
name, Boolean isHeaderValue)
            at System.Net.WebHeaderCollection.Add(String header)
            at Google.GData.Client.GAuthSubRequest.EnsureCredentials()
            at Google.GData.Client.GDataRequest.EnsureWebRequest()
            at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest
()
            at Google.GData.Client.GDataRequest.Execute()
            at Google.GData.Client.GDataGAuthRequest.Execute(Int32
retryCounter)
            at Google.GData.Client.GDataGAuthRequest.Execute()
            at Google.GData.Client.Service.Query(Uri queryUri,
DateTime ifModifiedSince, String etag, Int64& contentLength)
            at Google.GData.Client.Service.Query(Uri queryUri,
DateTime ifModifiedSince)
            at Google.GData.Client.Service.Query(FeedQuery feedQuery)
            at Google.GData.Health.HealthService.Query(HealthQuery
feedQuery)
            at GHAccessTest1.Form1.Button2_Click(Object sender,
EventArgs e) in C

Please help me get over the hump here. I've read the docs and tried to
mimic the snippets and samples. Other approaches also get err msgs
that don't inform me.  What am I missing?

Regards,

Ty


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