[ Version ( since = "0.5.0" ) ]
public string get_download_uri (string export_format, int gid)
Builds and returns the download URI for the given DocumentsSpreadsheet in the desired format.
Note that directly downloading the document using this URI isn't possible, as authentication is required. You should instead use DownloadStream with the URI, and use the resulting 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).
this | |
export_format |
the format in which the spreadsheet should be exported when downloaded |
gid |
the |
the download URI; free with g_free |