def _retrieve_data(self, request=None):
full_url = "<STR_LIT>" % (self.endpoint, request)<EOL>self.self_link = request<EOL>self.request = requests.get(url=full_url, headers=self.default_headers())<EOL>self.request.encoding = "<STR_LIT:utf-8>"<EOL>try:<EOL><INDENT>self.request.raise_for_status()<EOL><DEDENT>except requests.exceptions.HTTPError:<EOL><INDENT>error_handler(self.request)<EOL><DEDENT>return self.request<EOL>
Retrieve Zotero items via the API
Combine endpoint and request to access the specific resource
Returns a JSON document