skip to Main Content

What is the right way to integrate third party api in magento . Logistic API integration is provided , but need help with the right process to make it work.

Thanks in advance

2

Answers


  1. Assuming that you want to consume an external API from Magento this would be the correct structure:

    1. For Application related logic create a Module in local namespace
      (/app/code/local/(vendor-name)/(module-name))
    2. Enable your Module with an xml in /app/etc/modules/
    3. Put your Api related libraries or logic under /lib/
    4. Make use of Api libraries in Models under
      /app/code/local/(vendor-name)/(module-name)/Model

    UPDATE:

    I found a sample Magento 1 Module on github, that simply consumes google weather api.

    https://github.com/careys7/Magento-Weather-Sales

    Login or Signup to reply.
  2. An alternative solution could be, especially when trying to integrate an API that’s not directly supported by Magento, to use flowground. It offers flexible API integration for thousands of APIs with dedicated connectors, e.g. Magento 1 and Magento 2.

    Check the list of integrated connectors and GitHub for the list of available Open-Source connectors.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search