Hi,

I am trying to authenticate using to Google Spreadsheet service using
a google apps account. I always get a error "Captcha Required". My
code is as below:-

                SpreadsheetService service = new 
SpreadsheetService("__SMS_CRON");
                try {
                        
service.setUserCredentials(Configuration.get().getEmailUsername(),
                                                                           
Configuration.get().getEmailPassword());
                        SpreadsheetFeed feed = service.getFeed(new URL("http://
spreadsheets.google.com/feeds/spreadsheets/private/full"),
                                        SpreadsheetFeed.class);
                        List<SpreadsheetEntry> spreadsheets = feed.getEntries();

                } catch (AuthenticationException e) {
                        log.severe("Authentication Failed!");
                        e.printStackTrace();
                }


I get the following exception when I use a google apps username and
password. Whereas if I use a google username and password it works
correctly without any error.

com.google.gdata.client.GoogleService$CaptchaRequiredException:
Captcha required
        at
com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:
619)
        at
com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:
500)
        at
com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:
346)
        at
com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:
362)
        at
com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:
317)
        at
com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:
301)
        at in.abhicode.sms.ProcessMainSheet.doGet(ProcessMainSheet.java:35)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)

Kindly help.

Thanks,
Abhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to