Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

local API: item library info

65 views
Skip to first unread message

Emiliano Heyns

unread,
Sep 10, 2024, 5:23:52 PM9/10/24
to zotero-dev
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.

Emiliano Heyns

unread,
Sep 11, 2024, 4:24:49 AM9/11/24
to zotero-dev
Is it a safe assumption that is library.type = 'user' that I can use Zotero.Libraries.userLibraryID as the libraryID?
Reply all
Reply to author
Forward
0 new messages