When I fetch an attachment using the local API, I'm getting back (ao things) some library information:
"library": {
"type": "user",
"id": 1111111,
"name": "My Library",
}
but this is the user ID, not the library ID. I can see in Zotero.Libraries.getAll() that there is a library with libraryID 1 (which is the one I need, because the attachment item has libraryID 1 in the database) that has libraryTypeID 1111111, but I don't know what to make of that.