Skip to content

Instantly share code, notes, and snippets.

@hamstah
Created August 28, 2012 09:56
Show Gist options
  • Save hamstah/3496748 to your computer and use it in GitHub Desktop.
Save hamstah/3496748 to your computer and use it in GitHub Desktop.
Tags and notes from a document id
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