{"action":"created","issue":{"url":"https://api.github.com/repos/Narcolapser/python-o365/issues/63","repository_url":"https://api.github.com/repos/Narcolapser/python-o365","labels_url":"https://api.github.com/repos/Narcolapser/python-o365/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/Narcolapser/python-o365/issues/63/comments","events_url":"https://api.github.com/repos/Narcolapser/python-o365/issues/63/events","html_url":"https://github.com/Narcolapser/python-o365/issues/63","id":268062213,"number":63,"title":"python 3 support?","user":{"login":"ajwillo","id":24481217,"avatar_url":"https://avatars1.githubusercontent.com/u/24481217?v=4","gravatar_id":"","url":"https://api.github.com/users/ajwillo","html_url":"https://github.com/ajwillo","followers_url":"https://api.github.com/users/ajwillo/followers","following_url":"https://api.github.com/users/ajwillo/following{/other_user}","gists_url":"https://api.github.com/users/ajwillo/gists{/gist_id}","starred_url":"https://api.github.com/users/ajwillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajwillo/subscriptions","organizations_url":"https://api.github.com/users/ajwillo/orgs","repos_url":"https://api.github.com/users/ajwillo/repos","events_url":"https://api.github.com/users/ajwillo/events{/privacy}","received_events_url":"https://api.github.com/users/ajwillo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-24T14:47:43Z","updated_at":"2018-02-26T18:43:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nmy code sample below:\r\n\r\n```\r\n#Get Mail\r\n    i = Inbox(settings.ON_CALL_MAILBOX_AUTH,getNow=False)\r\n    # filter sample (IsRead eq false) and (Subject eq 'who')\r\n    i.getMessages()\r\n\r\n    messages = []\r\n    for mail in i.messages:  \r\n        obj_mail = Mail(\r\n            sender = str(Message.getSender(mail)['EmailAddress']['Address']),\r\n            subject = Message.getSubject(mail),\r\n            content = Message.getBody(mail)\r\n        )\r\n        messages.append(obj_mail)\r\n```\r\n\r\nis returning an error\r\n```\r\nTraceback (most recent call last):\r\n  File \"<console>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.6/site-packages/O365/inbox.py\", line 56, in getMessages\r\n    for message in response.json()['value']:\r\n  File \"/usr/local/lib/python3.6/site-packages/requests/models.py\", line 892, in json\r\n    return complexjson.loads(self.text, **kwargs)\r\n  File \"/usr/local/lib/python3.6/json/__init__.py\", line 354, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/local/lib/python3.6/json/decoder.py\", line 339, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/local/lib/python3.6/json/decoder.py\", line 357, in raw_decode\r\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\n\r\n```\r\n\r\nim assuming this is a python 3 issue? is there a fork of a python 3 version anywhere?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Narcolapser/python-o365/issues/comments/368604990","html_url":"https://github.com/Narcolapser/python-o365/issues/63#issuecomment-368604990","issue_url":"https://api.github.com/repos/Narcolapser/python-o365/issues/63","id":368604990,"user":{"login":"drewstinnett","id":193344,"avatar_url":"https://avatars2.githubusercontent.com/u/193344?v=4","gravatar_id":"","url":"https://api.github.com/users/drewstinnett","html_url":"https://github.com/drewstinnett","followers_url":"https://api.github.com/users/drewstinnett/followers","following_url":"https://api.github.com/users/drewstinnett/following{/other_user}","gists_url":"https://api.github.com/users/drewstinnett/gists{/gist_id}","starred_url":"https://api.github.com/users/drewstinnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewstinnett/subscriptions","organizations_url":"https://api.github.com/users/drewstinnett/orgs","repos_url":"https://api.github.com/users/drewstinnett/repos","events_url":"https://api.github.com/users/drewstinnett/events{/privacy}","received_events_url":"https://api.github.com/users/drewstinnett/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T18:43:53Z","updated_at":"2018-02-26T18:43:53Z","author_association":"CONTRIBUTOR","body":"Interesting...this is what I get when using a valid username/password:\r\n\r\n```\r\nINFO:O365.connection:Requesting URL: https://outlook.office365.com/api/v1.0/me/messages\r\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): outlook.office365.com\r\nDEBUG:urllib3.connectionpool:https://outlook.office365.com:443 \"GET /api/v1.0/me/messages?%24filter=&%24top=20&%24search=%22Subject%3Afoo%22 HTTP/1.1\" 200 None\r\nINFO:O365.connection:Received response from URL https://outlook.office365.com/api/v1.0/me/messages?%24filter=&%24top=20&%24search=%22Subject%3Afoo%22\r\n[<O365.fluent_message.Message object at 0x105bc2898>, <O365.fluent_message.Message object at 0x1065fefd0>, <O365.fluent_message.Message object at 0x107361978>, <O365.fluent_message.Message object at 0x1073619b0>, <O365.fluent_message.Message object at 0x1073619e8>, <O365.fluent_message.Message object at 0x107361940>, <O365.fluent_message.Message object at 0x107361c50>, <O365.fluent_message.Message object at 0x107361c18>, <O365.fluent_message.Message object at 0x107361be0>, <O365.fluent_message.Message object at 0x107361d68>, <O365.fluent_message.Message object at 0x107361e80>, <O365.fluent_message.Message object at 0x107361cf8>, <O365.fluent_message.Message object at 0x107361d30>, <O365.fluent_message.Message object at 0x106c75d30>, <O365.fluent_message.Message object at 0x10737f828>, <O365.fluent_message.Message object at 0x10737f5f8>, <O365.fluent_message.Message object at 0x10737f8d0>, <O365.fluent_message.Message object at 0x10737f710>, <O365.fluent_message.Message object at 0x10737f630>, <O365.fluent_message.Message object at 0x10737f748>]\r\n```"}}
{"actor":{"display_login":"drewstinnett"}}