This is a simple example of an application that consumes the Mendeley API, using the Python SDK.
For more information on the API, see the developer portal.
The application is a simple command-line script that retrieves the number of Mendeley users that have read a document with a given DOI. It uses the client credentials flow, meaning that users don't have to log in to Mendeley to use the application.
Register your client at the developer portal. This will give you a client ID and secret. (You will not get very far without these!)
Run the following command to install dependencies:
pip install -r requirements.txt
Insert your API keys with one of these methods:
MENDELEY_CLIENT_ID
and MENDELEY_CLIENT_SECRET
environment variables in your shell context to the appropriate values.Now run the example:
python mendeley-catalog.py [DOI you want to look up]