tropo / tropo-webapi-python

A set of Python classes for working with the Tropo WebAPI
MIT License
85 stars 33 forks source link

Needs to be an object, no? #26

Closed BSierakowski closed 7 years ago

frankmeten commented 7 years ago

No need to be an object. if you add .obj, it will

<type 'exceptions.AttributeError'> occurred on '/index.json': 'dict' object has no attribute 'json' Traceback: Traceback (most recent call last): File ".../tropo-webapi-python/samples/itty.py", line 603, in handle_request response = callback(request, kwargs) File "gh-21.choices.py", line 24, in index t.ask(choices, timeout=15, name="digit", say = "We use object this time. What's your four or five digit pin? Press pound when finished.") File ".../tropo-webapi-python/samples/tropo.py", line 741, in ask self._steps.append(Ask(choices, options).obj) File ".../tropo-webapi-python/samples/tropo.py", line 99, in init self._dict['choices'] = choices.json AttributeError: 'dict' object has no attribute 'json'