Magento Third API integration - php

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

Assuming that you want to consume an external API from Magento this would be the correct structure:
For Application related logic create a Module in local namespace
(/app/code/local/(vendor-name)/(module-name))
Enable your Module with an xml in /app/etc/modules/
Put your Api related libraries or logic under /lib/
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

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.

Related

How to integrate Odoo Database with Laravel?

I am working a project where entire application is developed using Laravel 5.5 (postgres). Now, our client came up with a requirement for having ERP and they opted to use ODOO 11 with very minimal customizations.
So , my concern is with database schema of odoo (like res.users conflicts with users table of laravel) and other basic integrations as such.
Being new to ODOO I don't know how much is the possibility of Laravel-Odoo integration.
I want to know is there any possible ways to integrate laravel and odoo database as one and do customization ?? And is there anyone out there who tried this already can help me with this ????
Thanks in advance
Odoo supports XML-RPC and JSON-RPC. Odoo is usually extended internally via modules, but many of its features and all of its data are also available from the outside for external analysis or integration with various tools. Part of the Model Reference API is easily available over XML-RPC and accessible from a variety of languages.
Please have a look here https://www.odoo.com/documentation/11.0/webservices/odoo.html you'll get the sample code how to interact with Odoo objects.
Hope this helps.
--
Regards
VK

How can I integrate the Amadeus API with my Laravel web page?

I need integrate the Amadeus API in my Laravel web page, because I can't find how can integrate this, I have learned some documentation for work in PHP, in other cases work in Laravel but no necesary with Amadeus, but with SOAP, I need to do this integration, Could you help me? please!
There is a PHP library to integrate the Amadeus Web Services SOAP interface in a PHP application. It sounds like what you need: https://github.com/amabnl/amadeus-ws-client/
Although this library doesn't provide any ready-made UI or any integration with Laravel, it is a composer package that can be included in any PHP composer-enabled projects easily. It does all the heavy lifting of session handling and creation, sending and receiving of SOAP messages.
I suggest you check it out, start with reading the Getting Started docs: https://github.com/amabnl/amadeus-ws-client/blob/master/docs/about-get-started.rst
If you want to integrate SOAP with your laravel application, you can use this package: https://github.com/artisaninweb/laravel-soap and just follow Amadeus API documentation.

Is it possible to make custom restful APIs for existing phpfox web application

We have a web application which is built in phpfox now we are going to develop a mobile application too (android and ios). So is any module or plugin available for phpfox restful apis or we need to write custom code for web service. I didn't find any useful link or example for phpfox webservices. Please help me to find best possible solution for this.
no plugins are available for this, you have to create custom restful API.

How to Create an api for OrangeHRM

I want to create an api for orangehrm to punch in & punch out but i am unable to find any documentation to create an api.
Anybody knows the standards or reference to create API for Orange HRM using XMLRPC,JSON etc..
Here's a 4-page overview of its support for web services. Note the Web services controller on page 4.
http://web.archive.org/web/20110822071832/http://www.myplick.com/view/4LD-9rCeJwJ/OrangeHRM-architecture-For-Web-Services?
Since its PHP based you can use one of the following:
The phpxmlrpc library(used by Joomla) OR the IXR library (used by Wordpress)
Then Read on the xmlrpc specification
Learn best practises from looking at the Joomla & Wordpress implementations. Security is very important
All the best!
EDIT:
There's also the built-in PHP library that you can enable as an extension

Integration Methods of Sugar CRM

I am going to develop a complex web application related to affiliates. I want to integrate sugarCRM as the CRM module of my affiliate application. I have some misunderstandings related to integration methods. From FAQs at Sugar CRM website, It is stated that there are two ways to integrate one is Webservice API and second is Module Builder.
Now let me first tell you about my understanding. If you have a standalone application running on your server and you want to integrate the CRM then you have to choose Web Services API for it. But if you have installed CRM on your server and not having any other standalone application then you can use Module Builder Method. It is just like you like you have installed any CMS and creates modules to extend the functionality.
Am I rite?
OR I am having wrong understanding about CRM integration? For standalone application we need to use only Web Services API in which we will use data using web services and show in our system?
Module Builder allows you to easily add new functionality to SugarCRM though an easy to use GUI. If you want to track company Desks, Widgets, Recordings, Headaches,....anything, you would use Module Builder to add your specific needs to SugarCRM. You can even relate these new module items to the core modules such as contacts, accounts, etc.
Web Services API is a way to access SugarCRM data and functionality from non-SugarCRM code. Web Services API can be used to Create, Read, Update, and Modify existing SugarCRM records through API calls. You can use SOAP or REST to communicate with SugarCRM. This includes accessing any newly created custom modules you built using Module Builder. With Web Services API, you could access how many resources, Widgets, Recordings, or Headaches from another internal or external application.
Web Service API is almost always the correct way, if you need to integrate with SugarCRM from an external application. This method is great for small-medium amounts of data and if you need your application to be in almost sync with sugarCRM.
Other methods exists which are better suited for larger amount of data and if "realtime" sync is not needed. However, they are usually more complex and require more development and understanding of SugarCRM.
It is e.g. possible to create a PHP batch script on the SugarCRM server, which interfaces with SugarCRM API and exports/imports the given information from/to another system.
Apart that the situation you describe is the reason why webservices exist, the ones provided by SugarCRM are extremelly flexible and allow you to access each and every feature, not only the ones provided by default, but also the ones you might develop and/or install.
Concluding, if what you really need is to perform an integration between your application and SugarCRM, you don't need to learn how to work with SugarCRM (from a developers perspective), you only need to know how to work with webservices, Soap or Rest.

Categories