interfax / interfax-java

Fax send and receive in Java with the InterFAX REST API
https://www.interfax.net/en/dev/java
MIT License
5 stars 9 forks source link

How to get Fax ID for sent fax? #20

Open cbetta opened 7 years ago

cbetta commented 7 years ago

@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?

cbetta commented 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.

anuragkapur commented 7 years ago

@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.