GData.DocumentsSpreadsheet¶
- Subclasses:
None
Methods¶
- Inherited:
GData.DocumentsDocument (4), GData.DocumentsEntry (16), GData.Entry (24), GData.Parsable (5), GObject.Object (37), GData.AccessHandler (2)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.AccessHandler (1)
Properties¶
- Inherited:
GData.DocumentsEntry (11), GData.Entry (10), GData.Parsable (1)
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.DocumentsSpreadsheet(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.DocumentsSpreadsheet
structure are private and should never be accessed directly.New in version 0.4.0.
- classmethod new(id)¶
- Parameters:
id (
str
orNone
) – the entry’s ID (not the document ID of the spreadsheet), orNone
- Returns:
a new
GData.DocumentsSpreadsheet
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.DocumentsSpreadsheet
with the given entry ID (GData.Entry
:id
).New in version 0.4.0.
- get_download_uri(export_format, gid)¶
- Parameters:
- Returns:
the download URI; free with
GLib.free
()- Return type:
Builds and returns the download URI for the given
GData.DocumentsSpreadsheet
in the desired format. Note that directly downloading the document using this URI isn’t possible, as authentication is required. You should instead useGData.DownloadStream.new
() with the URI, and use the resultingGio.InputStream
.When requesting a “csv”, “tsv”, “pdf” or
“html” file you may specify an additional parameter called gid which indicates which grid, or sheet, you wish to get (the index is 0-based, so GID 1 actually refers to the second sheet on a given spreadsheet).
New in version 0.5.0.