Closed hadim closed 9 years ago
The following code works :
mendeley = Mendeley(client_id, client_secret, redirect_uri=redirect_uri)
auth = mendeley.start_client_credentials_flow()
session = auth.authenticate()
However with this kind of authentication I can't access to my personal library and this is what I would like to do...
@matt-thomson
Hi @hadim - I no longer work for Mendeley, so I can't help you with this one. @MendeleyStack should be able to take a look.
Hey @hadim
I was able to recreate your first error using the exact same code. What fixed it for me was regenerating my client secret on the dev portal. Not ideal at the moment but can you please try that first and see if it works ?
@hadim what exactly are you trying to do? The client credentials flow is only for use with querying the catalog. Have you read some of the documentation over at http://dev.mendeley.com/reference/topics/authorization_overview.html
start_client_credentials_flow
works well but I need to access to my personal documents which I can't do with start_client_credentials_flow
.
So I need start_authorization_code_flow()
Using this code (adapted from https://github.com/Mendeley/mendeley-api-python-catalog-example/blob/master/mendeley-catalog.py) :
I have the following errors :
Now if I use this code (from http://mendeley-python.readthedocs.org/en/latest/usage.html#authorization-code-flow) :
I have the following error :
Any help would be great !