### Library ### print 'Library' print """ ----------------------------------------------------- My Library documents -----------------------------------------------------""" documents = mendeley.library() pprint(documents) print """ ----------------------------------------------------- Create a new library document -----------------------------------------------------""" response = mendeley.create_document(document=json.dumps({'type' : 'Book','title': 'Document creation test', 'year': 2008})) pprint(response) documentId = response['document_id'] print """ ----------------------------------------------------- Document details -----------------------------------------------------""" response = mendeley.document_details(documentId) pprint(response) print """ ----------------------------------------------------- Delete library document