Mendeley / mendeley-python-sdk

Python SDK for the Mendeley API.
Apache License 2.0
119 stars 59 forks source link

Client credentials flow: auth.authenticate() with no args not working as shown in documentation example #1

Closed blaiszik closed 9 years ago

blaiszik commented 9 years ago

TypeError: authenticate() takes exactly 2 arguments (1 given)

from mendeley import Mendeley

# These values should match the ones supplied when registering your application.
mendeley = Mendeley(client_id, client_secret=client_secret)

auth = mendeley.start_implicit_grant_flow()
session = auth.authenticate()
ghost commented 9 years ago

Hi, I am also getting the same error. (Missing token error for auth.authenticate() ). I also changed auth to mendeley.start_client_credentials_flow() but the error still persist. Please advise.

Also do we need to supply login credentials for any authentication. There is no proper documentation for this method.