On Fri, Feb 15, 2013 at 8:15 AM, Roy Hashimoto <[email protected]> wrote:
> Is there a way to get a JSONP wrapper on list data?  I've tried the
> 'callback=foo' parameter but that doesn't seem to work as it does for
> the rest of the API:

Answering my own question, the query API seems to work:

$ curl 
'http://openlibrary.org/query.json?key=/people/george08/lists/OL97L&*=&callback=foo'
foo([{"description": {"type": "/type/text", "value": "Happy to lose
myself in reading about that."}, "last_modified": {"type":
"/type/datetime", "value": "2010-12-17T18:54:58.115370"}, "created":
{"type": "/type/datetime", "value": "2010-12-17T18:50:35.064318"},
"seeds": [{"key": "/books/OL24331810M"}, {"key":
"/books/OL22864669M"}, {"key": "/books/OL7219307M"},
"subject:general_relativity_(physics)",
"subject:space_and_time_in_fiction"], "latest_revision": 5, "key":
"/people/george08/lists/OL97L", "revision": 5, "type": {"key":
"/type/list"}, "name": "Time Travel"}]);

Still interested in hearing if there are plans for CORS support.  And
are there any archives for this list?  The link
http://mail.archive.org/cgi-bin/mailman/private/ol-tech/ only shows
one message from 2010.

Roy
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to