Adding a "hello world" test file to test basic functionality of pyzotero

pull/1/head
Raymond Yee 2012-01-13 07:37:25 -08:00
parent 6c21074ee7
commit 16d8716f87
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from zoteroconf import user_id, user_key
# http://pyzotero.readthedocs.org/en/latest/index.html
from pyzotero import zotero
zot = zotero.Zotero(user_id, user_key)
items = zot.items()
for item in items:
print 'Author: %s | Title: %s' % (item['creators'][0]['lastName'], item['title'])