Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In This blog, we will learn about how to Get Response as String from your Retrofit Call.
Many times, during app development we need to use third-party modules and their response is not in our hand. I faced the same issue the response sent from third-party module was a simple string (no formatting done for any parser to work).
Being familiar with retrofit and its custom Converters for the response I got stuck with the response from this API. The response was in front of me through logs but was not accessible as retrofit was rejecting to detect it. So, I had to change the request a bit but implementing it was very easy.
Retrofit call Object :
Retrofit Callback Object :
And That’s It.
Keep coding and Keep Sharing 🙂
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.