Hi All,
I am listing all the spreadsheets a user has in UI. And on click of
the record I need to take to the corresponding spreadsheet. So for
getting the HTML link for the spreadsheets I am using the following
code.
SpreadsheetService service = new SpreadsheetService(APPLICATION_NAME);
service.setUserCredentials(userName, password);
SpreadsheetFeed feed = service.getFeed(new URL("http://
spreadsheets.google.com/feeds/spreadsheets/private/full"),
SpreadsheetFeed.class);
List<SpreadsheetEntry> entries = feed.getEntries();
for(SpreadsheetEntry entry : entries) {
System.out.println( entry.getHtmlLink().getHref() );
}
But the HTML link I am getting is invalid in case of enterprise
accounts.
The output I am getting is always of the following format
https://spreadsheets.google.com/ccc?key=spreadSheetKey
Where as the expected output is
https://spreadsheets.google.com/a/cust_domain.com/ccc?key=spreadSheetKey
Can anyone help me with this?
Thanks & Regards,
Sarath