0% found this document useful (0 votes)
19 views24 pages

Understanding API Integration Basics

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views24 pages

Understanding API Integration Basics

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

API Integration

[Link]
[Link]
use-an-api/
REVIEW
WHAT IS API?
API (Application Programming Interface) are
mechanisms that enable two software
components to communicate with each other
using a set of definitions and protocols.
For example, the weather bureau’s software
system contains daily weather data. The
weather app on your phone “talks” to this
system via APIs and shows you daily weather
updates on your phone.
CONCEPT OF API
Interface is the point of communication
between different components of an
application or system.
It defines how the two communicate with
each other using requests and responses.
Their API documentation contains
information on how developers are to
structure those requests and responses.
How do APIs work?

API architecture is usually explained in


terms of client and server. The application
sending the request is called the client,
and the application sending the response
is called the server. So, in the weather
example, the bureau’s weather database is
the server, and the mobile app is the client.
TYPES OF API
1. REST API
These are the most popular and flexible
APIs found on the web today. The client
sends requests to the server as data.
The server uses this client input to start
internal functions and returns output
data back to the client.
JSON FILE
TYPE OF API

2. SOAP APIs - These APIs


use Simple Object Access
Protocol. Client and server
exchange messages using
HTTPs and XML.
WAY API IS USED IN PROGRAMMING

3. JSON RPC - These APIs are


called Remote Procedure Calls. The
client completes a function (or
procedure) on the server, and the
server sends the output back to the
client.
COMMUNICATION PROCESS

JSON-RPC is a protocol that enables


communication between systems using
JSON-formatted messages. It allows a
client to invoke methods on a remote
server just like calling local functions.
CHARACTERISTIC

Its simplicity, use of JSON, and


flexibility make it suitable for
distributed systems, web
services, and applications like
those in the blockchain space
4. XML-RPC
XML-RPC is a protocol for remote procedure calls
that uses XML to encode requests and HTTP as a
transport mechanism, allowing one computer to
call a method on another computer over a network.
It enables communication between different
applications and systems, such as a desktop
application communicating with a web server to
publish a blog post
THANKS

You might also like