Call from custom module to third-party api in Magento 2 - magento2

How to call third party api after placing an order by customer in custom module Magento 2
I created a custom module for rest API.But my requirement is i want to connect to third party api end points and get data after customer order .

Related

How to Add/Update shipping address of customer usnig REST Api in Magento 2

I want to Add/Update/Delete shipping address of the specific customer (using auth token) using REST API in magento2. Is any API endpoint available for that?
You can get customer shipping address and delete it by using Magento 2 default rest API endpoints. You can check details here. vendor/magento/module-customer/etc/webapi.xml
To get shipping address by customer ID
/V1/customers/:customerId/shippingAddress
To delete shipping address by address id (you should get the address id from above endpoint).
/V1/addresses/:addressId
So, if you want to add & edit, you should create a basic module where you can define custom endpoints and methods.
If you want to know how to create custom rest api in Magento 2 you can check this out.
https://magento.stackexchange.com/questions/282480/i-am-new-here-i-want-to-know-how-can-i-create-my-own-simple-api

Rest API to a Magento 2 Site

Is there a way to make a REST API call to a website built in Magento 2? The scenario is I have multiple site and the header of these sites are shared whether I go to website 1 or website 2. Now when I go to website 1 and select/add an item to the cart I would like this cart count to be available in the other websites. So I was thinking having an API call to a certain website then retrieve that value to be displayed.
But I'm not sure if this is the best approach or if there is available REST API resource I can use to retrieve information of a website data. Like if I'm in website 2 I would like to get the information of website 1 I would just send a REST request to retrieve this information.

Want to call Webapi set entry Suite CRM 6.5

I have a Login form with three fields. I want to post the data into a specific module of sugar through API. Where do I write that API? I set the entry point and the call but don't know how to hit that API.
Custom API methods should be written in the following file:
custom/service/v4_1_custom/SugarWebServiceImplv4_1_custom.php
This is described in the old but relevant sugarcrm docs and then should be available like any other suite API call.

Is it possible to use all Magento 2's functionality through its REST API?

The last time I worked with Magento 1.x there wasn't a good REST API in place.
Now there looks to be one: http://devdocs.magento.com/swagger/index.html
I would like to integrate the Magento checkout and catalog (from a consumer perspective if you will) completely through the REST API (including the cart, stores etcetera).
Is this possible?
Magento 2 came up with vast features of REST API.So many Default REST API's are provided to manage the all customer activities,customer address management,CMS management
To know more core API
MAGENTO(ROOT FOLDER)/vendor/magento/magento-customer/etc/webapi.xml
Even we can create our own custom REST API to manage any other core activity by loading the model(db table)

Sugar CRM REST API module extension

I am achieved the login functionality through REST API provided by sugarCRM ,
http://<url>/service/v2/rest.php?method=login&input_type=JSON&response_type=JSON&rest_data={"user_auth":{"user_name":"Vsree","password":"0141ffbe5e8d1cbaaeee96b3ca49cc49"}}
also updated the login response from
service\core\SugarWebServiceImpl.php
i am updated the response and its working fine . but it is a suiteCRM core module , i want to extend the login functionality with out affecting core modules, So how can i extend the modules inside suircrm .How can i achieve this
In order to change the login you need to create a custom version of the modules that the login process uses in the custom/modules directory.
The authentication is handled by the users module. You could create your own type of authentication by copying one from modules/Users/authentication/
and pasting it in custom/modules/Users/authentication/.
This will give you a means to extend or to create your own authentication method.
You may wish to simply copy the SugarAuthenticate. Then you can create a custom version of it.