{"action":"created","issue":{"url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/1","labels_url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/1/comments","events_url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/1/events","html_url":"https://github.com/baskoopmans/python-zanox-api/issues/1","id":61592716,"number":1,"title":"Python 3 compability","user":{"login":"iwan933","id":7376501,"avatar_url":"https://avatars.githubusercontent.com/u/7376501?v=3","gravatar_id":"","url":"https://api.github.com/users/iwan933","html_url":"https://github.com/iwan933","followers_url":"https://api.github.com/users/iwan933/followers","following_url":"https://api.github.com/users/iwan933/following{/other_user}","gists_url":"https://api.github.com/users/iwan933/gists{/gist_id}","starred_url":"https://api.github.com/users/iwan933/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwan933/subscriptions","organizations_url":"https://api.github.com/users/iwan933/orgs","repos_url":"https://api.github.com/users/iwan933/repos","events_url":"https://api.github.com/users/iwan933/events{/privacy}","received_events_url":"https://api.github.com/users/iwan933/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-14T12:51:55Z","updated_at":"2015-03-25T00:22:01Z","closed_at":null,"body":"Hi,\r\n\r\ni downloaded the following package from pypi: https://pypi.python.org/pypi/python-zanox-api/0.4.0\r\n\r\nThis does not have any support for python3 - i had to change the lib imports (urllib) to get the imports running. Using the client.get function made me also change the following row: \r\n\r\nhmac.new(self.secret_key, msg=bytes(signature, 'utf-8'), digestmod=hashlib.sha1).digest()\r\n\r\nto\r\n\r\nhmac.new(bytearray(self.secret_key), msg=bytes(signature, 'utf-8'), digestmod=hashlib.sha1).digest()\r\n\r\nas python 3 has new types (bytes and bytearray) and hmac does not accept str's anymore.\r\n\r\nWhich works for me.\r\n\r\nRegards John"},"comment":{"url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/comments/85752399","html_url":"https://github.com/baskoopmans/python-zanox-api/issues/1#issuecomment-85752399","issue_url":"https://api.github.com/repos/baskoopmans/python-zanox-api/issues/1","id":85752399,"user":{"login":"iwan933","id":7376501,"avatar_url":"https://avatars.githubusercontent.com/u/7376501?v=3","gravatar_id":"","url":"https://api.github.com/users/iwan933","html_url":"https://github.com/iwan933","followers_url":"https://api.github.com/users/iwan933/followers","following_url":"https://api.github.com/users/iwan933/following{/other_user}","gists_url":"https://api.github.com/users/iwan933/gists{/gist_id}","starred_url":"https://api.github.com/users/iwan933/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwan933/subscriptions","organizations_url":"https://api.github.com/users/iwan933/orgs","repos_url":"https://api.github.com/users/iwan933/repos","events_url":"https://api.github.com/users/iwan933/events{/privacy}","received_events_url":"https://api.github.com/users/iwan933/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T00:22:01Z","updated_at":"2015-03-25T00:22:01Z","body":"Hi,\r\n\r\ni actually cannot pass the authentication. Which is quite annoying - as it only worked for the example request (api.get('programs')). I am also quite new to python so i actually recognized that i only made the old code run - without checking any functionality.\r\n\r\nRegards,\r\n\r\nJohn"}}