Hello folks,
I am new around here. My java code just tries to read an already existing Google spreadsheet.
spreadSheetService.setUserCredentials("XXX", "XXX","pass","pass",ClientLoginAccountType.HOSTED);
URL spreadSheetURL = new URL(url);
spreadSheetService.getFeed(spreadSheetURL, SpreadsheetFeed.class);
Now the getFeed API throws com.google.gdata.util.ParseException: Unrecognized content type:text/html;charset=UTF-8 :(
I inspected the response of the getFeed API and I find out that the spreadsheet response has opened in basic HTML :
Can anyone please help me out here. Thanks a ton!