What is an API?
full form of an API is Application Program Interface
by dividing complete full form into parts.
Application: Project or Application you’re working on or creating.
Program: An Existing Program from where you’ll grab your data or material for your website.
Interface: Interface is a term that works as an Intermediate between an application and a program.
How to Implement a REST API using CURL in PHP
Why do we need an API
For Example, while booking our tours/trips we book flights/hotels/rail/cruise by online existing websites or mobile applications:
for example, let’s talk about American Airline:
in the whole world, we can say thousands of websites are booking flights, do you believe if it’s a manual process? or all those websites have the availability of each flight every time? the answer is NO!!
so, here we need a term name an API, which works as an intermediator for all the booking websites and applications. all those websites grab live data from a single database of American Airlines.
Which API is Best
Before arising question which API is Best, let’s talk about types of APIs
- SOAP
- REST
as mentioned above we’ve two of the famous API Methods but today we’ll only talk about REST. why?
because in our opinion REST is one of the best API.
REST Stands for Representational State Transfer
which means a form of data in which can be transferred while transferring data from one server to another and two of the famous return type methods of REST API are:
- XML
- Jsons
to know more about the implementation of cURL call for Rest API in famous Opensource Computer Language PHP click here: how to Implement a REST API using CURL in PHP
Wonderful article! I wish I could write as well as you. I hope many people get the opportunity to enjoy this great content. Katrina Shaun Bor
Whoa. That was a fantastic short article. Please keep writing for the reason that I like your style. Melba Amble Cory
Your viewpoints fall in agreement with my opinions pretty well without exception. This is definitely valuable reading material for your followers. Allissa Nolly Cosma
Very informative blog article. Thanks Again. Fantastic. Claire Brent Herzog
Excellent post. I will be going through some of these issues as well.. Erinn Rubin Bilbe
Looking forward to reading more. Great article. Thanks Again. Dorri Bay Rhiamon
These are so cute. I love crafts you can make with recyclables like this. Betta Hobart Selena