get_download_uri


Description:

public string? get_download_uri (string export_format)

Builds and returns the download URI for the given DocumentsDocument 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.

export_format should be the file extension of the desired output format for the document, from the list accepted by Google Documents. For example: PDF, ODS or ODT.

If the export_format is not recognised or not supported for this document, null is returned.

Parameters:

this

a DocumentsDocument

export_format

the format in which the document should be exported when downloaded

Returns:

the download URI, or null; free with g_free