The important questions i would like to know are:

  • Can I call a CURL from inside a Model or ResourceModel?
  • Is there any standardized way to handle API's to third party apps?

Please keep in mind that, i already know about third party to Magento REST/SOAP API, what i want to know about is Magento 2 to third party APIs


Of course you can call to external API from inside Magento 2. Just use \Magento\Framework\HTTP\ZendClient inside your class.

Read more here.

I have a sample project here in my Github

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.