{"action":"created","issue":{"url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/42","labels_url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/42/comments","events_url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/42/events","html_url":"https://github.com/jasonkeene/python-ubersmith/issues/42","id":123600186,"number":42,"title":"Attempt to Encode dict types Causes AttributeError","user":{"login":"meporter","id":6073426,"avatar_url":"https://avatars.githubusercontent.com/u/6073426?v=3","gravatar_id":"","url":"https://api.github.com/users/meporter","html_url":"https://github.com/meporter","followers_url":"https://api.github.com/users/meporter/followers","following_url":"https://api.github.com/users/meporter/following{/other_user}","gists_url":"https://api.github.com/users/meporter/gists{/gist_id}","starred_url":"https://api.github.com/users/meporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meporter/subscriptions","organizations_url":"https://api.github.com/users/meporter/orgs","repos_url":"https://api.github.com/users/meporter/repos","events_url":"https://api.github.com/users/meporter/events{/privacy}","received_events_url":"https://api.github.com/users/meporter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-23T04:25:33Z","updated_at":"2015-12-24T13:45:41Z","closed_at":null,"body":"It appears a number of API calls, such as `client.get()`, return `dict` types as part of the results. In the `client.get()` example, the 'access' is part of the results.\r\n\r\n```\r\nu'access' (4359927536) = {dict} {u'search_ticket': u'view', u'lookup_domain': u'edit', u'ledger_event_log': u'view', u'view_billing_info': u'edit', u'view_invoice': u'', u'view_service': u'edit', u'view_ip_addresses': u'view', u'view_orders': u'edit', u'view_all_tickets': u'edit', u'view\r\n```\r\n\r\nThis causes to attempt to clean as a PHP type and throws\r\n```\r\nAttributeError: 'dict' object has no attribute 'encode'\r\n```"},"comment":{"url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/comments/167114349","html_url":"https://github.com/jasonkeene/python-ubersmith/issues/42#issuecomment-167114349","issue_url":"https://api.github.com/repos/jasonkeene/python-ubersmith/issues/42","id":167114349,"user":{"login":"meporter","id":6073426,"avatar_url":"https://avatars.githubusercontent.com/u/6073426?v=3","gravatar_id":"","url":"https://api.github.com/users/meporter","html_url":"https://github.com/meporter","followers_url":"https://api.github.com/users/meporter/followers","following_url":"https://api.github.com/users/meporter/following{/other_user}","gists_url":"https://api.github.com/users/meporter/gists{/gist_id}","starred_url":"https://api.github.com/users/meporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meporter/subscriptions","organizations_url":"https://api.github.com/users/meporter/orgs","repos_url":"https://api.github.com/users/meporter/repos","events_url":"https://api.github.com/users/meporter/events{/privacy}","received_events_url":"https://api.github.com/users/meporter/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T13:45:40Z","updated_at":"2015-12-24T13:45:40Z","body":"Produces new issue.\r\n\r\n```TypeError: attribute of type 'NoneType' is not callable```\r\n\r\nI haven't dug into it yet to see where this is being caused. Any thoughts? Any reason to not comment out ```    'access': 'php',``` in ```calls/client.py``` (line 41) instead of this?\r\n\r\nOddly, the only call that seems to have the Ubersmith version is ```device.event_list```. I'll ping them and see what we get done. "}}