Configure Zotero API access
zotConfig.RdCreates a configuration object for requests to the Zotero Web API. The object stores the user identifier, API key, and an optional request performer and file transport used by tests or alternative transports. Arguments may be passed explicitly or read from environment variables, which supports interactive, scripted, and agent-driven use.
Usage
zotConfig(
userID = Sys.getenv("ZOTERO_LIBRARY_ID"),
key = Sys.getenv("ZOTERO_API_KEY"),
performer = NULL,
fileTransport = NULL
)Arguments
- userID
Zotero user identifier. The default reads
ZOTERO_LIBRARY_ID.- key
Zotero API key. The default reads
ZOTERO_API_KEY.- performer
Optional function used by
zotRequest()instead of the package HTTP transport.- fileTransport
Optional list of the three file-upload steps (
authorize,upload,register) used byztAttach()and by theattachaction ofzotExecute()instead of the package's storage transport.