I'm having a lot of trouble accessing the default profile in H9 using 
OAuth.  I appear to get an access token but I can't use it to get any data.

I'm using the GData APIs in Java with HMAC-SHA1 OAuth and a few things I've 
noticed:

1. In the OAuth playground it looks like the the oauth_token_secret is not 
used to access the resource but when I try to access the resource in my code 
without it it complains that it isn't there.  Does oauth_token_secret need 
to be set?  (I'm saving this away with the access token for reuse).  When I 
do set it I get the 401 Unknown authorization header message.
2. The H9Service.getFeed(query,ProfileFeed.class) call that I'm using looks 
like it puts a realm="" parameter into the authorization header but doesn't 
put an oauth_version="1.0" parameter into the header.  These both appear to 
be different from what is done in the playground (where realm is not passed 
but oauth_version is).  Should that matter?  How do I configure these using 
the API?

Walking through the steps in the OAuth playground using my info works fine 
but it appears that the GData APIs calls the services a little differently.

Any suggestions?  Also, is there any way to get access to the actual URL and 
headers that will be actually be used by getFeed() so I can see what is 
going to be used?

Thanks,
-Aaron

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