added a function to call the zotero api