This is a minimal example showing how to authenticate using oAuth 1.0a and read from user's library using Zotero API. This example uses oauth-1.0a to talk to oAuth endpoint and zotero-api-client to talk to Zotero API. Check relevant project pages for documentation & support.
-
Navigate to https://www.zotero.org/oauth/apps and create a new App
-
Clone this example and change dir:
git clone https://github.com/tnajdek/zotero-api-client/ cd zotero-oauth-example/
-
Copy Client Key and Client Secret and populate
ZOTERO_APP_CLIENT_KEY
andZOTERO_APP_CLIENT_SECRET
inindex.js
respectively -
Install dependencies:
npm install
-
Run the example
npm start