1.1 Pre-requisites
Last updated
Last updated
The extension's functionality is centered on the use of citekeys as a system to organize references. Citekeys are short, meaningful identifiers for library items ; within Roam, they're excellent as page titles because they're unique, concise, and meaningful. In Zotero, Better BibTeX is an amazing citekey manager ; it lets you define your own naming patterns, can ensure all of your citekeys are unique within your library - and much more !
Better BibTeX also has a really important feature, which is necessary for the extension to work : it can pin citekeys to your items automatically. This is crucial because currently, the only way to retrieve item citekeys through the Zotero Web API is to have them be pinned.
The extension relies on the Zotero Web API (v3) to obtain data, which requires authentication. Zotero needs to make sure you're really you, so that it knows it can send over your data. This is implemented by an API key, and also your user ID if it's your own library you want to load. (Note that your user ID is different from your username !)
Log into your Zotero account in your browser, and navigate to Settings > Feeds/API (zotero.org/settings/keys).
You'll see a line of text at the top of the page, saying "Your userID for use in API calls is XXXXXXX". The XXXXXXX (typically a 7-digit expression) is your user ID ; make a copy of it somewhere; you'll be using it later.
Next, you need to set an API key. You can use a pre-existing one, if you like, or create a new one.
Make sure to give the appropriate permissions to the API key you'll be using with the extension. If you want to be able to import your notes, check the box "Allow notes access". If you want to be able to import data from group libraries, check the "Read Only" permission.
Once you save the key settings, the value of the API key will be displayed on the screen. This is the only time it will be available directly, for security purposes, so store its value now !