Hello Teresa,

When I'm doing this code : 

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(); 

I should get a stream of bytes from google - which is an image. The problem 
is that despite of fact I'm signing requests with oauth parameters (using 
auth post) I'm getting exception caused by 401 response. 
Maybe I've found solution but haven't got  time to give it a try... My 
problem may be caused by incorrect  scope im using during "oauth dance" ... 
I'm using https://google.com/m8/feeds/contacts - but images are under 
https://www.google.com/m8/feeds/photo this is different path - therefore 
the scope for photos may not be included in  oauth access. I will try 
antoher scope  - https://google.com/m8/feeds and maybe then I'll succeed. 
If it works I'll post a comment. 

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