{"action":"created","issue":{"url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/2","labels_url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/2/comments","events_url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/2/events","html_url":"https://github.com/rlmv/hathitrust-api/issues/2","id":30065890,"number":2,"title":"500 Error on DataAPI Example","user":{"login":"jabauer","id":243947,"avatar_url":"https://avatars.githubusercontent.com/u/243947?v=3","gravatar_id":"","url":"https://api.github.com/users/jabauer","html_url":"https://github.com/jabauer","followers_url":"https://api.github.com/users/jabauer/followers","following_url":"https://api.github.com/users/jabauer/following{/other_user}","gists_url":"https://api.github.com/users/jabauer/gists{/gist_id}","starred_url":"https://api.github.com/users/jabauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabauer/subscriptions","organizations_url":"https://api.github.com/users/jabauer/orgs","repos_url":"https://api.github.com/users/jabauer/repos","events_url":"https://api.github.com/users/jabauer/events{/privacy}","received_events_url":"https://api.github.com/users/jabauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-24T19:13:21Z","updated_at":"2015-01-15T16:37:29Z","closed_at":null,"body":"First, thanks for a great set of scripts.  You've made this much, easier.\r\n\r\nI have been trying to use the DataAPI example in the Readme.   When I copy and paste your instructions (inserting my own keys) I get the following output: \r\n\r\n>>> from hathitrust_api import DataAPI\r\n>>> data_api = DataAPI(your_oauth_key, your_oauth_secret)\r\n>>> ocrtext = data_api.getpageocr('dul1.ark:/13960/t00z82c1q', 14)\r\n\r\nHTTPError                                 Traceback (most recent call last)\r\n<ipython-input-7-29e2be1b38e9> in <module>()\r\n----> 1 ocrtext = data_api.getpageocr('dul1.ark:/13960/t00z82c1q', 14)\r\n\r\n/Users/jbauer/Projects/oauth_create/hathitrust-api/hathitrust_api/data_api.pyc in getpageocr(self, doc_id, sequence)\r\n    146 \r\n    147         \"\"\"\r\n--> 148         return self._makerequest('pageocr', doc_id, sequence=sequence)\r\n    149 \r\n    150 \r\n\r\n/Users/jbauer/Projects/oauth_create/hathitrust-api/hathitrust_api/data_api.pyc in _makerequest(self, resource, doc_id, sequence, v, json, callback)\r\n     79 \r\n     80         r = self.rsession.get(url, params=params)\r\n---> 81         r.raise_for_status()\r\n     82 \r\n     83         return r.content\r\n\r\n/Users/jbauer/envs/oauth_create/lib/python2.7/site-packages/requests/models.pyc in raise_for_status(self)\r\n    771 \r\n    772         if http_error_msg:\r\n--> 773             raise HTTPError(http_error_msg, response=self)\r\n    774 \r\n    775     def close(self):\r\n\r\nHTTPError: 500 Server Error: Internal Server Error\r\n\r\nI've tried inputting my keys as plain strings and unicode, and I also got new keys incase I had copied them incorrectly.  I also installed requests-oauthlib from source rather than using the PYPI version.\r\n\r\nAny suggestions are most welcome!"},"comment":{"url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/comments/70115108","html_url":"https://github.com/rlmv/hathitrust-api/issues/2#issuecomment-70115108","issue_url":"https://api.github.com/repos/rlmv/hathitrust-api/issues/2","id":70115108,"user":{"login":"rlmv","id":2666107,"avatar_url":"https://avatars.githubusercontent.com/u/2666107?v=3","gravatar_id":"","url":"https://api.github.com/users/rlmv","html_url":"https://github.com/rlmv","followers_url":"https://api.github.com/users/rlmv/followers","following_url":"https://api.github.com/users/rlmv/following{/other_user}","gists_url":"https://api.github.com/users/rlmv/gists{/gist_id}","starred_url":"https://api.github.com/users/rlmv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlmv/subscriptions","organizations_url":"https://api.github.com/users/rlmv/orgs","repos_url":"https://api.github.com/users/rlmv/repos","events_url":"https://api.github.com/users/rlmv/events{/privacy}","received_events_url":"https://api.github.com/users/rlmv/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T16:37:28Z","updated_at":"2015-01-15T16:37:28Z","body":"@sckott I haven't had a chance to dig into it. From a quick look at the version 2 docs, it seems like the authentication should work with what is here. The data endpoints, however, need to be rewritten to match the new url scheme."}}