SlideShare una empresa de Scribd logo
1 de 64
Descargar para leer sin conexión
API 101
APPLICATION
PROGRAMMING
INTERFACE
API ?
INTRODUCTION
An application programming interface (API) is a set
of subroutine definitions, protocols, and tools for
building application software. A good API makes it
easier to develop a computer program by providing
all the building blocks, which are then put together by
the programmer.
API ?
INTRODUCTION
APIS
ARE EVERYWHERE
TYPES
MANY TYPES
HARDWARD SOFTWARE WEB …
TYPES
AN API EXPOSE A SERVICE. A HARDWARE CONSOMME IT
TYPES
AN API EXPOSE A SERVICE. A PROGRAM CONSOMME IT
TYPES
AN API EXPOSE A SERVICE. A WEBSITE CONSOMME IT
API
TYPES
AN API EXPOSE A SERVICE. AN APP CONSOMME IT
API
CLIENT / SERVER
CLIENT/SERVER
AN API EXPOSE A SERVICE. A WEBSITE CONSOMME IT
API
API CLIENT
SERVICE
PROVIDER
APIS ORIGINS
APIS ORIGINS
API IS A
CONTRACT
NOT LIKE
WEBSITE
WEBSITE CONTRACT CHANGE SIDE EFFECT
API CONTRACT CHANGE SIDE EFFECT
API CONTRACT
CONTRACT
= TRUST
API = TRUST
CONTRACT
= DOC
= TOOLS …
CONTRACT =
PROTOCOL
THE RESTAURANT ANALOGY
THE RESTAURANT ANALOGY
API Providers = Restaurant Owners
Developer Portal = Restaurant
APIs = Food & Drink items
API definition + Doc = Menu
API consumers (Apps) = Restaurant consumers (people)
Terms of Service = We Reserve The Right To Refuse - No
Substitutions
THE RESTAURANT ANALOGY
HTTP
API Provider
API Response
HTTP
API ClientAPI Client
API Request
HTTP IS THE UNDERLYING PROTOCOL USED BY THE WORLD WIDE
WEB AND THIS PROTOCOL DEFINES HOW MESSAGES ARE
FORMATTED AND TRANSMITTED, AND WHAT ACTIONS WEB SERVERS
AND BROWSERS SHOULD TAKE IN RESPONSE.
HTTP
WHAT IS HTTP
HTTP
FOR HUMAINS
HTTP
FOR CATS
HTTP
FOR MACHINES
API ONLY PLEASE!
CONTRACT =
STYLE
REPRESENTATIONAL STATE
TRANSFER
REST
REST
REST
ROY FIELDING
REST
RESTFUL API = FOLLOW THE REST ARCHITECTURE STYLE
RESOURCES & METHODS
REST
REST
RESOURCES
TEXT, IMAGE, MUSIC, VIDEO… AVAILABLE WITH AN URL
URL = UNIFORM RESOURCE LOCATOR
https://api.service.com/toto http://www.dailymotion.com/embed/xxxx http://dm.com
METHODS
methods meaning
GET Order
POST Update
DELETE Cancel
REST
REST API REQUEST
I'M FAMOUS AND I KNOW IT
REST VS SOAP VS XMLRPC
REST VS SOAP
REST
SOAP / XMLRPC
DATA = MARTIN LAWRENCE
REST VS SOAP
GRAPHQL
GRAPHQL
A spec/style to design an API
Over HTTP
Used in Facebook’s native apps in production since 2012
Open sourced in July 2015
GRAPHQL
GRAPHQL
THE API CLIENT HAS MORE POWER
GRAPHQL
THE API CLIENT HAS MORE POWER
GRAPHQL VS REST
REST is here to stay
Simple
Widely used
GraphQL
different approach
The UI is the king
Solve some limits of REST
REPRESENTATIONS
TEXTE
HTTP
API provider
API Response
HTTP
API ClientAPI Client
API Request
PRESENTATION ?
JSON
JSON
XML
XML
DAILYMOTION APIS
DATA API
SOME INSIGHTS
‣200 million API requests / day
‣Average response time : 70ms
‣500K API Keys
‣14 million connected users
DATA API
WHAT FOR ?
‣Get video data, user, playlist
‣Search videos
‣Publish videos
‣Get streams
‣Manage users
‣More…
DATA API
REST CALL
DATA API
GRAPH
DATA API
CRUDL
DATA API
API EXPLORER
PLAYER API
WHAT FOR ?
‣Embed & Customise
‣Interact (Advanced)
PLAYER API
EMBED
PLAYER API
INTERACT
PLAYER API
LISTEN EVENTSSEND ACTIONS
DEMO - Q&A
THANK YOU

Más contenido relacionado

La actualidad más candente

Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravelMindfire LLC
 
Postman: An Introduction for API Ops Professionals
Postman: An Introduction for API Ops ProfessionalsPostman: An Introduction for API Ops Professionals
Postman: An Introduction for API Ops ProfessionalsPostman
 
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...Amazon Web Services
 
Diameter Capabilities Exchange
Diameter Capabilities ExchangeDiameter Capabilities Exchange
Diameter Capabilities ExchangeArpit Prajapati
 
Can mule integrate with ring central
Can mule integrate with ring centralCan mule integrate with ring central
Can mule integrate with ring centralAnirban Sen Chowdhary
 
Line Messaging API Integration with Spring-Boot
Line Messaging API Integration with Spring-BootLine Messaging API Integration with Spring-Boot
Line Messaging API Integration with Spring-BootInnovationM
 
Bulk sms in hyderabad
Bulk sms in hyderabadBulk sms in hyderabad
Bulk sms in hyderabadbulksms456
 
Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and failsVyacheslav Lyalkin
 
Postman Enterprise Webinar
Postman Enterprise WebinarPostman Enterprise Webinar
Postman Enterprise WebinarKin Lane
 
How to integrate authentication using aws amplify in flutter complete guide
How to integrate authentication using aws amplify in flutter complete guideHow to integrate authentication using aws amplify in flutter complete guide
How to integrate authentication using aws amplify in flutter complete guideKaty Slemon
 
Your First Amazon Alexa Skill
Your First Amazon Alexa SkillYour First Amazon Alexa Skill
Your First Amazon Alexa SkillMike Christianson
 
Introduction to Facebook Pop
Introduction to Facebook PopIntroduction to Facebook Pop
Introduction to Facebook PopKarnika Advani
 

La actualidad más candente (20)

Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravel
 
Postman: An Introduction for API Ops Professionals
Postman: An Introduction for API Ops ProfessionalsPostman: An Introduction for API Ops Professionals
Postman: An Introduction for API Ops Professionals
 
How to integrate bulk sms api in java
How to integrate bulk sms api in javaHow to integrate bulk sms api in java
How to integrate bulk sms api in java
 
Bulk sms gateway integration in java
Bulk sms gateway integration in javaBulk sms gateway integration in java
Bulk sms gateway integration in java
 
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...
AWS re:Invent 2016: State of the Union: Amazon Alexa and Recent Advances in C...
 
The New Dope
The New DopeThe New Dope
The New Dope
 
Diameter Capabilities Exchange
Diameter Capabilities ExchangeDiameter Capabilities Exchange
Diameter Capabilities Exchange
 
Can mule integrate with ring central
Can mule integrate with ring centralCan mule integrate with ring central
Can mule integrate with ring central
 
Line Messaging API Integration with Spring-Boot
Line Messaging API Integration with Spring-BootLine Messaging API Integration with Spring-Boot
Line Messaging API Integration with Spring-Boot
 
Hello SMS!
Hello SMS!Hello SMS!
Hello SMS!
 
Bulk sms in hyderabad
Bulk sms in hyderabadBulk sms in hyderabad
Bulk sms in hyderabad
 
Amazon Alexa Workshop
Amazon Alexa WorkshopAmazon Alexa Workshop
Amazon Alexa Workshop
 
Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and fails
 
API Gateway with legend lambada
API Gateway with legend lambadaAPI Gateway with legend lambada
API Gateway with legend lambada
 
What's an api
What's an apiWhat's an api
What's an api
 
Postman Enterprise Webinar
Postman Enterprise WebinarPostman Enterprise Webinar
Postman Enterprise Webinar
 
How to integrate authentication using aws amplify in flutter complete guide
How to integrate authentication using aws amplify in flutter complete guideHow to integrate authentication using aws amplify in flutter complete guide
How to integrate authentication using aws amplify in flutter complete guide
 
Your First Amazon Alexa Skill
Your First Amazon Alexa SkillYour First Amazon Alexa Skill
Your First Amazon Alexa Skill
 
Introduction to Facebook Pop
Introduction to Facebook PopIntroduction to Facebook Pop
Introduction to Facebook Pop
 
Amazon Echo
Amazon EchoAmazon Echo
Amazon Echo
 

Destacado

Dades alumnes
Dades alumnesDades alumnes
Dades alumnesJavier
 
6 tips for boosting gift card sales final
6 tips for boosting gift card sales final6 tips for boosting gift card sales final
6 tips for boosting gift card sales finalMarisa Cogan
 
Bellows globe valve
Bellows globe valveBellows globe valve
Bellows globe valveJLX Valve
 
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...Indalytics Advisors
 
Introduction to Cell Notes
Introduction to Cell NotesIntroduction to Cell Notes
Introduction to Cell Notesericchapman81
 
Environmental pollutions,several types of environmental pollutions are presen...
Environmental pollutions,several types of environmental pollutions are presen...Environmental pollutions,several types of environmental pollutions are presen...
Environmental pollutions,several types of environmental pollutions are presen...Anand P P
 
Frases para la paz 2017
Frases para la paz 2017Frases para la paz 2017
Frases para la paz 2017Geni
 
Curriculum vitae_Nabaa_Nov22_2016
Curriculum vitae_Nabaa_Nov22_2016Curriculum vitae_Nabaa_Nov22_2016
Curriculum vitae_Nabaa_Nov22_2016Nabaa Alshafei
 

Destacado (9)

Resumos Teoria do Crime FDUNL
Resumos Teoria do Crime FDUNLResumos Teoria do Crime FDUNL
Resumos Teoria do Crime FDUNL
 
Dades alumnes
Dades alumnesDades alumnes
Dades alumnes
 
6 tips for boosting gift card sales final
6 tips for boosting gift card sales final6 tips for boosting gift card sales final
6 tips for boosting gift card sales final
 
Bellows globe valve
Bellows globe valveBellows globe valve
Bellows globe valve
 
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...
Early Childhood Education in UAE to 2021 - Market Size and Intelligence Repor...
 
Introduction to Cell Notes
Introduction to Cell NotesIntroduction to Cell Notes
Introduction to Cell Notes
 
Environmental pollutions,several types of environmental pollutions are presen...
Environmental pollutions,several types of environmental pollutions are presen...Environmental pollutions,several types of environmental pollutions are presen...
Environmental pollutions,several types of environmental pollutions are presen...
 
Frases para la paz 2017
Frases para la paz 2017Frases para la paz 2017
Frases para la paz 2017
 
Curriculum vitae_Nabaa_Nov22_2016
Curriculum vitae_Nabaa_Nov22_2016Curriculum vitae_Nabaa_Nov22_2016
Curriculum vitae_Nabaa_Nov22_2016
 

Similar a api_101

Building REST APIs that don't suck for modern day SPAs
Building REST APIs that don't suck for modern day SPAsBuilding REST APIs that don't suck for modern day SPAs
Building REST APIs that don't suck for modern day SPAsAbati Adewale
 
RefCard API Architecture Strategy
RefCard API Architecture StrategyRefCard API Architecture Strategy
RefCard API Architecture StrategyOCTO Technology
 
Introduction to API
Introduction to APIIntroduction to API
Introduction to APIrajnishjha29
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIsAparna Sharma
 
A_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdfA_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdfPamRobert
 
Practical guide to building public APIs
Practical guide to building public APIsPractical guide to building public APIs
Practical guide to building public APIsReda Hmeid MBCS
 
API Guide For Dummies.pdf
API Guide For Dummies.pdfAPI Guide For Dummies.pdf
API Guide For Dummies.pdfAppdeveloper10
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...apidays
 
How to Scale APIs-as-Product for Future Success
How to Scale APIs-as-Product for Future SuccessHow to Scale APIs-as-Product for Future Success
How to Scale APIs-as-Product for Future SuccessPostman
 
API Platform-Unified.cc.pdf
API Platform-Unified.cc.pdfAPI Platform-Unified.cc.pdf
API Platform-Unified.cc.pdfEmilyEthan1
 
REST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion AetherREST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion AetherPavan Kumar
 
LAJUG Napster REST API
LAJUG Napster REST APILAJUG Napster REST API
LAJUG Napster REST APIstephenbhadran
 

Similar a api_101 (20)

Building REST APIs that don't suck for modern day SPAs
Building REST APIs that don't suck for modern day SPAsBuilding REST APIs that don't suck for modern day SPAs
Building REST APIs that don't suck for modern day SPAs
 
RefCard API Architecture Strategy
RefCard API Architecture StrategyRefCard API Architecture Strategy
RefCard API Architecture Strategy
 
Introduction to API
Introduction to APIIntroduction to API
Introduction to API
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
 
A_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdfA_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdf
 
Api manager preconference
Api manager preconferenceApi manager preconference
Api manager preconference
 
Practical guide to building public APIs
Practical guide to building public APIsPractical guide to building public APIs
Practical guide to building public APIs
 
API Guide For Dummies.pdf
API Guide For Dummies.pdfAPI Guide For Dummies.pdf
API Guide For Dummies.pdf
 
AIR & API
AIR & APIAIR & API
AIR & API
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
Web services - REST and SOAP
Web services - REST and SOAPWeb services - REST and SOAP
Web services - REST and SOAP
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...
Apidays Paris 2023 - How to Scale APIs-as-a-Product for Future Success, Samir...
 
How to Scale APIs-as-Product for Future Success
How to Scale APIs-as-Product for Future SuccessHow to Scale APIs-as-Product for Future Success
How to Scale APIs-as-Product for Future Success
 
API Platform-Unified.cc.pdf
API Platform-Unified.cc.pdfAPI Platform-Unified.cc.pdf
API Platform-Unified.cc.pdf
 
Apitesting.pptx
Apitesting.pptxApitesting.pptx
Apitesting.pptx
 
Mule api management
Mule  api managementMule  api management
Mule api management
 
REST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion AetherREST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion Aether
 
API Best Practices
API Best PracticesAPI Best Practices
API Best Practices
 
LAJUG Napster REST API
LAJUG Napster REST APILAJUG Napster REST API
LAJUG Napster REST API
 

api_101