I was reading Mendeley docs from here. I am trying to get data in my console for which I am using the following code from the tutorial
from mendeley import Mendeley
# These values should match the ones supplied when registering your application.
mendeley = Mendeley(client_id, redirect_uri=redirect_uri)
auth = mendeley.start_implicit_grant_flow()
# The user needs to visit this URL, and log in to Mendeley.
login_url = auth.get_login_url()
# After logging in, the user will be redirected to a URL, auth_response.
session = auth.authenticate(auth_response)
Now I don't understand where is auth_response
will come from in the last line of code ? Does anybody have any idea ? Thanks
I was able to experiment with and get it working using below code, fully automated. No user intervention
The last line prints
[<mendeley.models.files.File object at 0x1115b5400>]
which means the access if working