I received a job to access the hubspot api to create contacts and other objects. While looking for client libraries i found out there aren't any for java (ones that are officially maintained and mature).
The docs are quite clear, but json is schemales, the client libraries provide structure.
I looked at the php library which seems to be generated from an open api specs:
===
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually.
===
Is it possible to generate java classes using this open api generator?
I don't know if this is possible because i am not coding on Java sinc my studies something like 10 years ago ^^. Maybe zack have an idea on that. I will ask him on slack if he can take a look.
Cheers @dennisedson , in the meantime i analyzed the request and response json, did build a few java pojo's and configured the serializer/deserializer to be relaxed when it comes to missing fields.
I considered using writing a few php scripts which use the php client library and call them from java using php cli, but it was a bit overkill considering the current state of our project and well php isn't very strict either.
But i'm still very interesting in a object tree generated by some openapi code generator. Especially with java it adds type safety and the contract is much more strict, which has all kinds of benefits when it comes to maintenance.