Closed woodleyi closed 4 years ago
@woodleyi & @jon-adams noted.
We're also very close to an official v2-SDK that has some breaking changes, but overall should be a better and cleaner experience (also includes a fix for this issues)
In the meantime; we'll get the v1 patched up to the correct from
object.
Thanks!
Resolved in v1.3 with new object OutboundMessageFrom
.
However, I very recommend checking out v2.1.0 for the latest changes. It's a mostly straightforward upgrade; though does have some changes.
Checkout the sample: https://github.com/team-telnyx/demo-java-telnyx and the tests for an idea on what's new.
Also, you can @dant
me in the Telnyx Slackif you have any questions! Cheers
Refer to OutboundMessage#from.
The type specified for the from field in this model class is a String. Problem: the API response returns a full JSON object for this field. This is the from response I receive from the createMessage API:
Full API response:
Java code to reproduce:
Exception raised: