Open ryanhunt opened 7 years ago
Ok I figured out how to fix it.
Two changes required:
print str(e)
to print(str(e))
json.loads(r.content)
to json.loads(r.text)
Ok, I created a fork - fixed the bugs and extended it to support checking the status of sent messages, receiving replies and also checking user quota. I'd advise you review my code and merge with yours.
HI there.
I've got the lastest Rasbian (Debian for Raspberry Pi) build which includes
Python 3.4.2
. The packages I have install viapip3
are:requests-2.13.0
telstra-sms-sdk-0.0.7
When using the sample code I get this error:
Traceback (most recent call last): File "./sendsms.py", line 3, in <module> from telstra_sms_sdk.sms import TelstraSMS File "/usr/local/lib/python3.4/dist-packages/telstra_sms_sdk/sms.py", line 56 print str(e) ^ SyntaxError: invalid syntax