citeproc-java contains remote connectors that allow you to read documents from
Mendeley Web or Zotero
and to use them as input for citations or bibliographies.
Mendeley uses OAuth 2.0 authorization.
You have to obtain a consumer key and consumer secret for
your application from the Mendeley Developers Portal.
Additionally, your application needs to provide a web page that your
users will be redirected to after they have entered their credentials.
You can create a Mendeley remote connector as follows:
Zotero uses OAuth as well. Register your application with
Zotero to get a consumer key and
a consumer secret. After that you can create a Zotero remote connector
The next step is to ask users to authorize your application to
access their remote account. Use an AuthenticatedRemoteConnector
to cache the authorization tokens, so the users do not have to
go through the authorization process over and over again.
The best way to check if the tool is already authorized is by just
performing a request and catching the exception.
Finally, you can use the RemoteConnector to read the list of
items from the server and to obtain details for each of them.
Put the read items into a ListItemDataProvider to use them
as input for the CSL processor: