Replies: 2 comments
-
My original question stands as-is. |
Beta Was this translation helpful? Give feedback.
-
No problem. If you open an issue, I'll get you an endpoint; it needs to be on an issue as I can only drop test builds there. |
Beta Was this translation helpful? Give feedback.
-
I have successfully used the incredibly useful BBT json-rpc interface for a number of operations, but cannot figure out how to do the following: given an attachment key, can I find out the item key for the Zotero record that contains that attachment?
More specifically, following the naming scheme used by the Zotero devs, if I'm looking at a PDF file on disk in my Zotero storage area, and this file has a path of the form
..../storage/PPMJQGRI/file.pdf
, the folder namePPMJQGRI
is the "attachment key". Using Pyzotero, it's possible to look up the parent record key, which I do in a program I wrote called Zowie. Now I'm trying to see if I can use BBT to get this information instead of using Pyzotero.It seems like BBT has everything needed, but I can't find a suitable rpc endpoint to make it work. The closest I can come is to export the entire database in (say) "jzon" format and then look for the file in the result, but this is much too slow. Is there a more direct way?
Beta Was this translation helpful? Give feedback.
All reactions