Open cbetta opened 7 years ago
The same goes for documents, where I also had to get the URL from the headers as well as the ID. This is a pain.
@cbetta - no reason really, probably just a lack of an idea around how consumers would use the SDK.
I agree, wrapping responses to a domain objects should make the sdk easier to use. I'll refactor soon.
@anuragkapur I am trying to write some samples for the Java library and getting rather stuck.
I can send a fax, but the response seems to be rather... simple. For example, as far as I can tell I can only get the response status, headers and raw body after sending a fax, where ideally I just need the fax ID at that point.
In the other SDKs we have wrapped the API return objects into their own classes/objects to make this kind of discovery a lot easier. Is there a reason why we didn't do this in Java?