SpreadsheetEntry.getKey() returns a key preceded by 'spreadsheet%3A' <p>I use Google Spreadsheet API to copy a document from one account to another and then I want to return the key for the newly created spreadsheet.</p> <p>The copying is done by retrieving the template spreadsheet, creating a new one with <code>SpreadsheetEntry newDoc = new SpreadsheetEntry();</code> then setting the <code>id</code> of the new one to the template spreadsheet <code>newDoc.setId(template.getId());</code>. Then I insert the new spreadsheet</p> <p><code>newDoc = service.insert(new URL("https://docs.google.com/feeds/default/private/full"), newDoc);</code></p> <p>I want to return to the caller two things: link to the newly created spreadsheet and its key. I get the first through <code>newDoc.getSpreadsheetLink().getHref();</code> and it returns <code>https://docs.google.com/a/bridgeworks.nl/spreadsheet/ccc?key=0Asl_Vu_YG4J-dDc5NHpwTFVRZFNiVENnRUxOb21XLVE</code></p> <p>Then I call <code>newDoc.getKey();</code> and it returns <code>spreadsheet%3A0Asl_Vu_YG4J-dDc5NHpwTFVRZFNiVENnRUxOb21XLVE</code></p> <p>The key seems to be preceded by <code>spreadsheet%3A</code>. But why? Can I safely remove it and return just the key?</p> <p>If I use</p> <p><code>URL worksheetUrl = urlFactory.getWorksheetFeedUrl("0Asl_Vu_YG4J-dDc5NHpwTFVRZFNiVENnRUxOb21XLVE", "private", "full");</code></p> <p>it succeeds but</p> <p><code>URL worksheetUrl = urlFactory.getWorksheetFeedUrl("spreadsheet%3A0Asl_Vu_YG4J-dDc5NHpwTFVRZFNiVENnRUxOb21XLVE", "private", "full");</code></p> <p>fails</p>