Tag: google docs

Google API for Google Docs,请求文档列表 – 400 Bad Request

从谷歌服务器validation谷歌文档后,我做了一个简单的getResponse,但我收到400错误请求。 我不明白我哪里错了。 示例代码如下 private void executeRefreshAlbums() { HttpRequest request = transport.buildGetRequest(); request.url = GoogleDocsUrl.forDefaultPrivateFull(); System.out.println(“URL = “+request.url); try { HttpResponse response = request.execute(); System.out.println(“Response = “+response.getContent()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } sysout打印正确的URL作为 03-12 17:36:59.573: INFO/System.out(451): URL = https://docs.google.com/feeds/default/private/full 但是,当我这样做时,我得到了 03-12 17:43:41.360: WARN/System.err(3958): com.google.api.client.http.HttpResponseException: 400 Bad Request 03-12 […]

谷歌文档的缩略图链接不起作用

我做了一个java代码来获取谷歌文档文件图像的缩略图链接.getThumbnailLink()这段代码工作到最后一个星期四或星期五,现在不起作用…我得到的结果是url为“未找到错误404”消息:“ https://docs.google.com/a/se.pe/feeds/vt?gd=true&id=1dDEYCOQTlpSy5izlcNz0dAq12ooD3cB5Gdqc1Wd4VV4&v=1&s=AMedNnoAAAAAUq9UYexxDIprZfC2V8RnJd4gxWeVaXLw&sz=s220 ”。 我认为谷歌已经更改了此url的格式,例如在我看到的相同缩略图图片的drive.google.com界面中: https : //lh3.google.com/MO8uVrNxKRa3uvSmqtR5yUZ1ooSZtP5zDpLMtCdmeiA4CZB4MXNKeDN1ewEBdzJleHkKAEpShb-BcOor8lwQOKbtQk7x=w230-h212 请帮助我再次获取代码以获取谷歌文档的缩略图。