0% found this document useful (0 votes)
41 views

API (Application Programming Interface

Uploaded by

Ujwal Bhatta
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

API (Application Programming Interface

Uploaded by

Ujwal Bhatta
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

API(Application Programming

Interface
What is an API?

• API is the acronym for Application Programming Interface, which is a


software intermediary that allows two applications to talk to each other.
Each time you use an app like Facebook, send an instant message, or
check the weather on your phone, you’re using an API.
How do APIs work?
• Imagine a waiter in a restaurant. You, the customer, are sitting at the table with a menu
of choices to order from, and the kitchen is the provider who will fulfill your order.
• You need a link to communicate your order to the kitchen and then to deliver your food
back to your table. It can’t be the chef because they’re cooking in the kitchen. You
need something to connect the customer who’s ordering food and the chef who
prepares it. That’s where the waiter — or the API —  enters the picture.
• The waiter takes your order, delivers it to the kitchen, telling the kitchen what to do. It
then delivers the response, in this case, the food, back to you. Moreover, if the API is
designed correctly, hopefully, your order won’t crash!
Types of APIs

• in terms of release policies, APIs can be private, partner, and public


What Is an API Key?

• An application programming interface (API) key is a code used to identify


and authenticate an application or user.
• They also act as a unique identifier and provide a secret token for
authentication purposes.
What is POST request in API?

• In web services, POST requests are used to send data to the API server
to create or update a resource. The data sent to the server is stored in the
request body of the HTTP request. The simplest example is a contact form
on a website
The post() method sends a POST request to the specified url.
The post() method is used when you want to send some data to the server .
THANK YOU

You might also like