Hi,

I try to acess a private spread sheet with the following version 3 code:

        SpreadsheetService service = new 
SpreadsheetService("OcProjectCalendar");
        // here I use my user name and password from my google account
        service.setUserCredentials("xxxxxxxxxxx@xxxxxx", "xxxxxxxx");
        URL metafeedUrl = new 
URL("https://spreadsheets.google.com/feeds/spreadsheets/private/full";);
        SpreadsheetFeed feed = service.getFeed(metafeedUrl, 
SpreadsheetFeed.class);

but get a "Bad Request" exception. Url, username and password are correct. 
When I try the url in a browser, I can only access it if I'm logged in, 
otherwise I get a 404, so I expect it's a authentication problem. 
Isn't service.setUserCredentials working?

Best Regards,
Sorokan

Reply via email to