Mendeley / mendeley-api-python-catalog-example

This is a simple example of an application that consumes the Mendeley API, using the Python SDK.
Apache License 2.0
22 stars 6 forks source link

Mendeley API Python Catalog Example

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.

About the application

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.

Prerequisites

Register your client at the developer portal. This will give you a client ID and secret. (You will not get very far without these!)

How to install

  1. Install Python and Pip.
  2. Run the following command to install dependencies:

    pip install -r requirements.txt

How to run

Insert your API keys with one of these methods:

Now run the example:

    python mendeley-catalog.py [DOI you want to look up]

Build status

Travis CI