Ah, no wonder the json looked funny, I was wondering why it had the single quote and a ‘u’. Also, is my library messed up or am I not doing it right, I keep getting the loads error
Traceback (most recent call last):
File "example.py", line 13, in <module>
msgs = json.loads(TN.getMessages())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer
also, in python, if the def arguments are already defined do I still need to put it in the call? here is the function def
def getMessages(self, start_message_id = 1, page_size = 30, get_all = 1):