Bug 656970 - Add thumbnail support
Add thumbnail support
Status: RESOLVED FIXED
Product: libgdata
Classification: Platform
Component: Google Documents service
git master
Other All
: Normal enhancement
: Drive API
Assigned To: libgdata-maint
libgdata-maint
:
Depends on: 593537
Blocks:
  Show dependency tree
 
Reported: 2011-08-20 18:43 UTC by Philip Withnall
Modified: 2012-07-21 10:09 UTC (History)
2 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Philip Withnall 2011-08-20 18:43:26 UTC
In version 3.0 of the Google Documents API, thumbnails for documents are exposed as the http://schemas.google.com/docs/2007/thumbnail link on the documents' entries.

This link is only exposed for version 3.0, and downloading the thumbnail apparently requires authentication (which makes sense).

We'll have to add some API to download thumbnails, similar to the photo and thumbnail downloading API for PicasaWeb.
Comment 1 Philip Withnall 2012-07-21 10:09:50 UTC
commit 39b6ac0d4c79730bbaa62f36cd9aa343559b07ee
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sat Jul 21 11:07:45 2012 +0100

    Bug 656970 — Add thumbnail support
    
    Add support for downloading thumbnails of Google Documents documents. This
    includes a test case, but it isn’t very useful because I can’t find a single
    document which has a thumbnail expressed in its metadata. Your mileage may
    vary.
    
    This also includes an example of how to download thumbnails, but that’s
    similarly (unfortunately) untestable. This leaves me with a sour taste in
    my mouth.
    
    New API:
     • gdata_documents_document_get_download_uri()
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=656970

 docs/reference/gdata-sections.txt                  |    1 +
 gdata/gdata.symbols                                |    1 +
 .../services/documents/gdata-documents-document.c  |   65 ++++++++++++++++
 .../services/documents/gdata-documents-document.h  |    2 +
 gdata/tests/documents.c                            |   81 ++++++++++++++++++++
 5 files changed, 150 insertions(+), 0 deletions(-)

Note You need to log in before you can comment on or make changes to this bug.