Using Curl to contact various APIs in PHP

Hiiiii, being a developer if you want to contact or request APIs or you have to request payment gateway for sending the amount deduction request to payment sites then you can contact them with the help of form submissions or using web services . Most of us don’t know how to use web services and to use which web services for your work. so, here in this post I’ll give a tutorial of using a web services.

Web services are used for connection between two areas of data(sites) over network. For this tutorial, I will be using “curl” web services to connect to various APIs. Curl uses HTML, javascript and high level languages like “PHP”,etc to perform its task of connection between various sites. Using curl we can send a data in the form of XML or any other format which your requesting APIs demands.

curl-web-service

To see code……  CLICK HERE

Leave a comment