{"action":"created","issue":{"url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/26","repository_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python","labels_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/26/comments","events_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/26/events","html_url":"https://github.com/OneDrive/onedrive-sdk-python/issues/26","id":139717219,"number":26,"title":"OneDrive for Business / list exception KeyError: 'value'","user":{"login":"jjbrink","id":17752599,"avatar_url":"https://avatars.githubusercontent.com/u/17752599?v=3","gravatar_id":"","url":"https://api.github.com/users/jjbrink","html_url":"https://github.com/jjbrink","followers_url":"https://api.github.com/users/jjbrink/followers","following_url":"https://api.github.com/users/jjbrink/following{/other_user}","gists_url":"https://api.github.com/users/jjbrink/gists{/gist_id}","starred_url":"https://api.github.com/users/jjbrink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjbrink/subscriptions","organizations_url":"https://api.github.com/users/jjbrink/orgs","repos_url":"https://api.github.com/users/jjbrink/repos","events_url":"https://api.github.com/users/jjbrink/events{/privacy}","received_events_url":"https://api.github.com/users/jjbrink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-09T22:15:36Z","updated_at":"2016-03-10T00:21:30Z","closed_at":"2016-03-10T00:21:30Z","body":"following the instructions in issue #16 i'm attempting to connect to onedrive for business and list the items in the root, but get an exception when attempting the list. is there something i'm doing incorrectly?\r\n\r\n```\r\nimport onedrivesdk\r\n\r\nclient_id = '17a...'\r\nclient_secret = 'RKa...'\r\nredirect_uri = 'https://localhost:...'\r\nonedrive_base_url = 'https://...-my.sharepoint.com/_api/v2.0'\r\n\r\nauth_scopes = [ 'wl.signin', 'wl.offline_access', 'onedrive.readwrite' ]\r\n\r\n\r\n# using this technique b/c i'll need a custom Session class once this is working\r\nhttp_provider = onedrivesdk.http_provider.HttpProvider()\r\nauth_provider = onedrivesdk.auth_provider.AuthProvider(http_provider=http_provider,\r\n                                                       client_id=client_id,\r\n                                                       scopes=auth_scopes)\r\nclient = onedrivesdk.OneDriveClient(onedrive_base_url, auth_provider, http_provider)\r\n\r\n# code obtained from logging in on browser\r\ncode = \"M66...\"\r\nclient.auth_provider.authenticate(code, redirect_uri, client_secret)\r\n\r\nclient.item(drive=\"me\", id=\"root\").children.get()\r\n\r\n# this last call raises:\r\n#\r\n#Traceback (most recent call last):\r\n#  File \"onedrive_test.py\", line 54, in <module>\r\n#    client.item(drive=\"me\", id=\"root\").children.get()\r\n#  File \"/Library/Python/2.7/site-packages/onedrivesdk/request/children_collection.py\", line 131, in get\r\n#    return self.request().get()\r\n#  File \"/Library/Python/2.7/site-packages/onedrivesdk/request/children_collection.py\", line 72, in get\r\n#    return self._page_from_response(collection_response)\r\n#  File \"/Library/Python/2.7/site-packages/onedrivesdk/collection_base.py\", line 51, in _page_from_response\r\n#    return response.collection_page\r\n#  File \"/Library/Python/2.7/site-packages/onedrivesdk/request/children_collection.py\", line 148, in collection_page\r\n#    self._collection_page = ChildrenCollectionPage(self._prop_dict[\"value\"])\r\n#KeyError: u'value'\r\n```"},"comment":{"url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/comments/194585544","html_url":"https://github.com/OneDrive/onedrive-sdk-python/issues/26#issuecomment-194585544","issue_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-python/issues/26","id":194585544,"user":{"login":"jjbrink","id":17752599,"avatar_url":"https://avatars.githubusercontent.com/u/17752599?v=3","gravatar_id":"","url":"https://api.github.com/users/jjbrink","html_url":"https://github.com/jjbrink","followers_url":"https://api.github.com/users/jjbrink/followers","following_url":"https://api.github.com/users/jjbrink/following{/other_user}","gists_url":"https://api.github.com/users/jjbrink/gists{/gist_id}","starred_url":"https://api.github.com/users/jjbrink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjbrink/subscriptions","organizations_url":"https://api.github.com/users/jjbrink/orgs","repos_url":"https://api.github.com/users/jjbrink/repos","events_url":"https://api.github.com/users/jjbrink/events{/privacy}","received_events_url":"https://api.github.com/users/jjbrink/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T00:21:30Z","updated_at":"2016-03-10T00:21:30Z","body":"thank you for the quick reply -- you're right, it's failing at the API level too. it looks like an issue with converged authentication and onedrive for business APIs, will be digging more our end. thanks!"}}