sfreiberg / gotwilio

Twilio library for Go (golang).
BSD 2-Clause "Simplified" License
342 stars 136 forks source link

Add a new `GetMessage` function #87

Closed tekkamanendless closed 3 years ago

tekkamanendless commented 3 years ago

GetSMS only returns the SMS data (from /SMS/Messages/{SID}.json). GetMessage, however, returns more of the status information (from the /Messages/{SID}.json). This is necessary in order to determine if the message was delivered, if the handset is unavailable, if the person has unsubscribed, etc.

In addition, I added a few missing SMS fields as part of my troubleshooting. The GetSMS response now includes: