That's a good idea. I've been looking over the Python API wrapper, which all of the current bots use, but it makes sense to review how the bots themselves are implemented.
>From Ben's bot, I think I have the answer my main question: You need to back send *complete* Open Library objects when saving, not just partial objects with the modified fields. Is that correct? John On Thu, Mar 14, 2013 at 5:34 PM, Tom Morris <[email protected]> wrote: > We should work on improving the documentation in this realm, but in the > mean time you might want to check some of the existing bots e,g, > > https://github.com/bencomp/VacuumBot > > or any of the others that you can identify by checking who's got bot access > > Tom > > On Thu, Mar 14, 2013 at 8:17 PM, John Shutt <[email protected]>wrote: > >> Any information about how Open Library deals with PUT requests internally >> would also be extremely helpful! For example: >> >> * If the JSON object sent to Open Library includes a new value for an >> existing key (adding more stuff to the "subjects" array, for instance), >> will that value be updated in the expected way? >> >> * If the JSON object includes an entirely new field (like Goodreads and >> LibraryThing identifiers for a book that doesn't have them listed yet), >> will the new field be appended to the end of the Open Library object? >> >> * Will sending a JSON object that *only* includes new or changed fields >> do something bad, like replace the original Open Library object with the >> new, incomplete object? >> >> * Would it be possible to see a sample cURL request that saves things >> successfully to Open Library? There's a gap in the >> docs<http://openlibrary.org/dev/docs/restful_api#save>where this would go. >> >> John >> >> >> On Thu, Mar 14, 2013 at 3:13 PM, John Shutt <[email protected]>wrote: >> >>> I'm working on adding PUT requests to the Ruby API wrapper, and want to >>> run a couple of small tests against Open Library to make sure that >>> everything works correctly. Would it be possible to add my profiles, >>> "pemulis" and "nondescriptbot", to the API >>> usergroup<http://openlibrary.org/usergroup/api>? >>> I promise to tread lightly when making requests. >>> >>> John >>> >> >> >> _______________________________________________ >> 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] >> >> > > _______________________________________________ > 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] > >
_______________________________________________ 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]
