collections parameter

CharlasLibraryThing API Development

Únete a LibraryThing para publicar.

collections parameter

Este tema está marcado actualmente como "inactivo"—el último mensaje es de hace más de 90 días. Puedes reactivarlo escribiendo una respuesta.

1KingRat
Jul 17, 2009, 8:43 pm

What's the collections parameter for the JSON API? I know it's been added, but trying to parse the default widget javascript code to find it is kind of a pain.

2JonathanGorman
Ene 1, 2010, 4:42 pm

Did you ever find out the answer? I'm going to take a look at this shortly as I want to play around with some greasemonkey scripts with librarything site soon and to be able to see if a book is in a user collection would be useful.

(Essentially, I'm tired of green checkmarks appearing in recommendations even if it's only in the collection "to read". Needs to be something else).

3DaynaRT
Ene 1, 2010, 6:07 pm

>2 JonathanGorman:
I think a lot of people would be very happy with a script that could do away with or change the color of the checkmarks in the various lists around LT. Please do update us on anything you may come up with.

4drysdam
Ene 7, 2010, 12:13 pm

Heh, I just joined this group to ask this question. I want to be able to get the books from my "To Read" collection and query my library to see if they have them.

5KingRat
Ene 7, 2010, 12:19 pm

I never did find out. I parsed through the widget Javascript but it isn't exposed so far as I can tell. Basically, the new widget code which actually can use collections is buried under a widget ID. I.e., you give LT a widget ID and it retrieves server-side the collections that are attached to that widget. I couldn't find it client-side.

6JonathanGorman
Ene 7, 2010, 1:49 pm

>4 drysdam:. Yeah, I think there could be a really great value by being able to find out if I have a book and what collection it is in and to be able to restrict by collection.

> 5. Dang, I was doing the same thing last night, trying to figure out how the widget worked. Didn't see anything obvious. I guess worse-case scenario I can try to figure out how to manipulate the widget object, but it's still not a perfect solution. Oh well.

* In addition to the ability to change checkmarks, I think you could create a better "reading log" that could work with items that are transferred out of a "currently reading" to another collection. I mean, it looks like some of the functionality like date start and end dates are already there but as far as I can tell it is not exactly streamlined yet.

If I get more time to dig and find anything I'll let folks know.