Open csimoes1 opened 2 months ago
Thank you for bringing this up.
We are currently working on this.
For the Java client please consider the following:
This way an APIClient without custom templates would be possible. Easier to build with default configuration and less problems during updates. Alternative HTTP client libraries can be implemented.
Thank you for sharing the details.
clients/sellingpartner-api-aa-java/pom.xml has:
Many other parts of my project are using okhttp3, something like:
Converting this is relatively straightforward. It seems you just need to update the "LWAAuthorizationSigner" and "LWAClient" classes to use okhttp3 instead of okhttp, particularly for the Request object. Reporting this just to bring it to your attention. I was running my project in a servlet container, and the class path loading was causing a runtime crash due to okhttp having a class called ByteStream that was not resolving properly.