Created
August 28, 2012 09:56
-
-
Save hamstah/3496748 to your computer and use it in GitHub Desktop.
Tags and notes from a document id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mendeley_client import * | |
mendeley = create_client() | |
# create a test document | |
response = mendeley.create_document(document={'notes':'notes','tags':['tag1', 'tag2'],'type' : 'Book','title': 'Document creation test', 'year': 2008}) | |
document_id = response['document_id'] | |
# get notes and tags from a document id | |
details = mendeley.document_details(document_id) | |
print "Notes: ",details['notes'] | |
print "Tags: ",details['tags'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment