KEMBAR78
Api application programming interface | PPTX
API-Application
Programming Interface
- Mohit Bishnoi
Introduction to API
• An Application Programming Interface (API) is a set
of commands, functions and protocols which
programmers can use when building a software.
• It allows the programmers to use predefined
functions to interact with systems, instead of writing
them from scratch.
Characteristics of good API
–Easy to learn and use, Hard to misuse.
–Easy to read and maintain code that uses it.
–Is programming language neutral.
–Sufficiently powerful to support all
computational requirements
API Key
• An application programming interface key (API key) is a code
passed in by computer programs calling an application programming
interface (API) to identify the calling program, its developer, or its
user to the Web site. API keys are used to track and control how the
API is being used, for example to prevent malicious use or abuse of
the API.
USES
• The API key often acts as both a unique identifier and a secret token
for authentication, and will generally have a set of access rights on
the API associated with it.
• API keys can be based on the universally unique identifier (UUID)
system to ensure they will be unique to each user.
API Example
Think of an API like a menu in a restaurant. The
menu provides a list of dishes you can order, along
with a description of each dish. When you specify
what menu items you want, the restaurant’s
kitchen does the work and provides you with some
finished dishes. You don’t know exactly how the
restaurant prepares that food, and you don’t really
need to.
GOOGLE MAPS API
if you’ve ever seen a Google Maps object embedded on a
website, that website is using the Google Maps API to
embed that map. Google exposes APIs like this to web
developers, who can then use the APIs to plop complex
objects right on their website. If APIs like this didn’t exist,
developers might have to create their own maps and
provide their own map data just to put a little interactive
map on a website.
Example Continued—
Google and Facebook API
API Polling

Api application programming interface

  • 1.
  • 2.
    Introduction to API •An Application Programming Interface (API) is a set of commands, functions and protocols which programmers can use when building a software. • It allows the programmers to use predefined functions to interact with systems, instead of writing them from scratch.
  • 3.
    Characteristics of goodAPI –Easy to learn and use, Hard to misuse. –Easy to read and maintain code that uses it. –Is programming language neutral. –Sufficiently powerful to support all computational requirements
  • 4.
    API Key • Anapplication programming interface key (API key) is a code passed in by computer programs calling an application programming interface (API) to identify the calling program, its developer, or its user to the Web site. API keys are used to track and control how the API is being used, for example to prevent malicious use or abuse of the API. USES • The API key often acts as both a unique identifier and a secret token for authentication, and will generally have a set of access rights on the API associated with it. • API keys can be based on the universally unique identifier (UUID) system to ensure they will be unique to each user.
  • 5.
    API Example Think ofan API like a menu in a restaurant. The menu provides a list of dishes you can order, along with a description of each dish. When you specify what menu items you want, the restaurant’s kitchen does the work and provides you with some finished dishes. You don’t know exactly how the restaurant prepares that food, and you don’t really need to.
  • 6.
    GOOGLE MAPS API ifyou’ve ever seen a Google Maps object embedded on a website, that website is using the Google Maps API to embed that map. Google exposes APIs like this to web developers, who can then use the APIs to plop complex objects right on their website. If APIs like this didn’t exist, developers might have to create their own maps and provide their own map data just to put a little interactive map on a website.
  • 8.
  • 9.