You have two problems. I'm not sure about the second problem, but the first is that you are trying to use a cellFeedURL
without the correct key, you are just using worksheetName
, which is probably not correct. If you do something like this:
public static void main(String... args) throws MalformedURLException, ServiceException, IOException {
SpreadsheetService service = new SpreadsheetService("Test");
FeedURLFactory fact = FeedURLFactory.getDefault();
String key = "0AvNWoDP9TASIdERsbFRnNXdsN2x4MXMxUmlyY0g3VUE";
URL spreadSheetUrl = fact.getWorksheetFeedUrl(key, "public", "basic");
WorksheetFeed feed = service.getFeed(spreadSheetUrl,
WorksheetFeed.class);
WorksheetEntry entry = feed.getEntries().get(0);
URL cellFeedURL = entry.getCellFeedUrl();
CellFeed cellFeed = service.getFeed(cellFeedURL, CellFeed.class);
}
You will get the correct CellFeed
. However, your second problem is that if you do it this way, all the CellEntry.getCell()
in the CellFeed
populate as null
. I am not sure why, or if it can be solved while logged in as public/basic
.