Skip to content

unable to get folders for a user #8

@adalisan

Description

@adalisan

I am trying to use Folders api to get all folders or all documents in a particular folder. My code is based on the python example and the authorization work with other API calls like list all documents.

    session['token'] = mendeley_session.token
    folders_req = {}
    response = requests.get(url= "https://api.mendeley.com/folders/",json=folders_req)
    response_dict = json.loads(response.text)
    print (response_dict)
    response = requests.get(url= "https://api.mendeley.com/folders/2a6b304b-5b59-493e-a4b6-92fcf065db05",params={
        'id': '2a6b304b-5b59-493e-a4b6-92fcf065db05'
    })

where '2a6b304b-5b59-493e-a4b6-92fcf065db05' is one of the folders in my library
I get the following response for the two API calls above
{'errorId': 'oauth/NOT_AUTHORIZED', 'message': 'Could not access resource because: No auth header'}
Are these API calls no longer allowed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions