Hi,
I am writing a Java application which can be run from a Desktop computer.
I want to log in to Picasa, look at photo album information and
download/upload/delete etc.
I have followed the documentation and I get the following error:
AuthenticationException:com.google.gdata.util.AuthenticationException:
Error connecting with login URI
when trying to run this code:
PicasawebService service = new
PicasawebService("gdata-PhotosPartialDemo");
accountManager am = getGlobals().getAccountManager();
service.setUserCredentials(am.getUserName(m_AccountID).toString(),
am.getPassword(m_AccountID).toString(),ClientLoginAccountType.HOSTED_OR_GOOGLE);
I have:
- Tested acocuntManager to prove that
am.getUserName(m_AccountID).toString() and
am.getPassword(m_AccountID).toString() produce correct values for username
and password
- Tried every combination of ClientLoginAccountType.HOSTED_OR_GOOGLE
- Added the cert from https://www.google.com/accounts/AuthSubRequest to
my keystore (
http://prasanta-paul.blogspot.co.uk/2010/11/certificate-exception-in-google-data_04.html
)
I always get the same error. Does anyone know how I can debug this further?
What URI is it getting an error with?
Can I try and call the http connection myself?
Thanks
Robert
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-picasa-data-api/-/cYzE7gJhDrMJ.
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/google-picasa-data-api?hl=en.