Common Lisp interface to the Google GData API's
1Author Contact Information
- Email: firstname.lastname@example.org
- Google+ profile: http://profiles.google.com/lokedhs
cl-gdata is a project aimed at implementing the Google GData API's in Common Lisp.
Source code can be found at: https://github.com/lokedhs/cl-gdata
Web site: http://source.dhsdevelopments.com/home/cl-gdata
Google Group: https://groups.google.com/forum/?fromgroups#!forum/cl-gdata
cl-gdata is being developed on SBCL, but all attempts are made to keep the code as standard as possible. That said, because of the numerous libraries being used, not all Lisp implementations are able to load this library.
This project is currently known to work on:
It currently has problems with:
- ABCL (Does not have a functioning implementation of Closer-MOP)
- ECL (xpath does not load)
- CLISP (Fails when loading classes with a metaclass. Problems withthe MOP implementation?)
4.1AuthenticatingAll API calls requires the user to be authenticated. Google providesseveral different authentication methods that can be used. The primaryways are: ClientLogin, AuthSub and OAuth.
cl-gdata supports different implementations of authentication
objects, although currently only ClientLogin is supported by means of
All functions that require authentication needs to be able to access a
session instance that is responsible for handling the authentication
process. The session can be specified using the keyword
argument :SESSION and will default to the content of
4.1.1Authenticating With ClientLoginThe ClientLogin session instance is created by instantiating the
This will cause all subsequent calls to the GData functions to use ClientLogin with the given username and password.
4.1.2Authenticating With OAuth
The OAuth autentication model is currently under development and does not work yet.
4.2Document List API
The document List API is used to access documents in Google Docs.
All symbols for this part of the API is in the
package. The examples assumes that this package is interned in the
Listing documents is performed using the
Running the above results in something like the following:
(#<DOCUMENT "word document"> #<SPREADSHEET "Test spreadsheet">
#<DOCUMENT "Test document">)
4.2.2Document Object Hierarchy
All document classes inherit from the DOCUMENT class. This itself
ATOM-FEED-ENTRY (see ATOM-FEED-ENTRY Class
|The ID URL for this document
|The resource ID. This value uniquely identifies this document.
|The suggested name for the file when downloaded
|The timestamp when the document was updated
|List of entries, each being a list of type and source URL
TODO: check the source code for now: spreadsheets.lisp
TODO: check the source code for now: contacts.lisp
TODO: check the source code for now: picasa.lisp
4.6Google Code Issue Tracker API
TODO: check the source code for now: issue-tracker.lisp
4.7ATOM-FEED-ENTRY Class Description
ATOM-FEED-ENTRY is the superclass of all classes that
describe entries from an Atom feed. This includes all documents from
Google Docs as well as Picasa documents and Google Contacts.
The class has the following slots:
|A list of all <atom:link> elements
|The title of the element
|The XML node that was read from the Atom feed