CREATE-DOCUMENT (TYPE TITLE &KEY (SESSION *GDATA-SESSION*))
Create a document of the given TYPE. TITLE indicates the title of the document.
DELETE-DOCUMENT (DOCUMENT &KEY (SESSION *GDATA-SESSION*) (DELETE NIL))
Delete a document. If DELETE is NIL, the file is moved to the trash. If DELETE is non-NIL, the file will be permanently deleted.
DOWNLOAD-DOCUMENT (DOCUMENT DESTINATION &KEY (SESSION *GDATA-SESSION*) CONTENT-TYPE)
Downloads DOCUMENT. DESTINATION is a function which will be called with an input stream as an argument. CONTENT-TYPE indicates the desired format of the downloaded data. If NIL, then download the file in the default format. Note that most files are only available in a single format, so NIL is usually the correct value for this parameter.
DOWNLOAD-DOCUMENT-TO-FILE (DOCUMENT DESTINATION &KEY (SESSION *GDATA-SESSION*) CONTENT-TYPE OVERWRITE)
Downloads DOCUMENT to a file. DESTINATION is the name of the file. If the file already exists and OVERWRITE is non-NIL, overwrite the file, otherwise signal an error. CONTENT-TYPE is specified as per DOWNLOAD-DOCUMENT.
LIST-DOCUMENTS (&KEY (SESSION *GDATA-SESSION*) MAX-RESULTS SHOWFOLDERS TYPE QUERY-STRING UPDATED-MIN)
List all the documents that belongs to the authenticated user. :MAX-RESULTS can be set to an integer (up to a maximum of 1000) that limits the number of returned objects. If :SHOWFOLDERS is non-NIL, the resulting list will also contain folder objects. :TYPE can be used to limit the output to a specific type of documents (one of :DOCUMENT, :SPREADSHEET, :PRESENTATION, :DRAWING or :FOLDER). If :QUERY-STRING is non-NIL, it is used as a search term. If given, :UPDATED-MIN indicates the oldest documents that should be included in the output. The value can be either a universal time value, a local-time instance, or a string in standard ISO format.
UPLOAD-DOCUMENT (FILE &KEY TITLE DESCRIPTION (SESSION *GDATA-SESSION*) (CHUNK-SIZE (* 512 1024)) (CONVERT NIL) (CONTENT-TYPE application/octet-stream) (PROGRESS-UPDATE NIL))
Upload a document to Google. TITLE indicates the document name under which the file will be stored. DESCRIPTION is the description of the file. CHUNK-SIZE indicates the size of each upload chunk. This value must be a multiple of 512 kB. If non-NIL, CONVERT indicates that the file should be converted to the apropriate document format. For example, word processing documents will be converted to an editable Google Docs document. CONTENT-TYPE specifies the format of the data. If given, PROGRESS-UPDATE will be called after each chunk has been uploaded. It will be called with one argument, the number of bytes uploaded.
COPY-STREAM-WITH-LIMIT (FROM TO LIMIT)
Copies a maximum of LIMIT elements into TO (a stream) from FROM (also a stream) until the end of FROM is reached, in blocks of 8192 elements. The streams should have the same element type.
Given a document, return the id to be used in document URL's. The second return value is the document type.
%UPLOAD-DOCUMENT-SEND-METADATA (STREAM TITLE DESCRIPTION)
MAKE-DOCUMENT-FROM-RESOURCE (NODE RESOURCE-TYPE)
Create a document instance based on a specific resource type
The resource ID of the document, from the <resource-id> node in the XML document.
The access role.
A list of three elements representing the values of the gAcl:scope node. The elements in the list are the content of the type, value and name attributes.