Hello,

I've very strange problem with contact api, There is no way for me to 
retrieve image associated with google contact. 
When executing the code below , I'm getting* No Authentication Header 
Information* exception but I'm sure I'm providing correct oauth tokens, as 
previous 
requests made for retrieving contacts (without images) are successfull. So 
how it is possible that there is No Authentication Header Information ? 
(Previously I was calling createLinkQueryRequest() - the exception was *No 
Authentication Header Information*  )

String resource = 
"https://www.google.com/m8/feeds/photos/media/default/18a637490f9e026f";
GoolgeOAuthParameters oauthParameters = 
tokenManager.getAuthParameters(email);
OAuthConsumer consumer = new 
DefaultOAuthConsumer(oauthParameters.getOAuthToken(),oauthParameters.getOAuthTokenSecret);
URL url = new URL(resource);
HttpURLConnection request = (HttpURLConnection)url.openConnection();
consumer.sign(request);
request.connect();
request.getInputStream();

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to