SlideShare a Scribd company logo
APIs

(for beginners)
@ssaunier
Application
Programming
Interface
an
used by
with an
Interface
Programs to interact
Application
Application
(User) Interface
Program
No (direct)
human usage
of APIs
Developers
APIs expose
something useful
API
Developers
write Programs
which consumes APIs
API Consumption
Web APIs
http://www.programmableweb.com/category/all/apis
Google Maps JS API
AirBnB
Twilio API
UBER
As a developer,
I need GPS coordinates
of venues to show next
gigs in town on a map
Timeout content manager
don’t know
GPS coordinates of venues
Timeout content manager
won’t manually enter
GPS coordinates of venues
Timeout content manager
will enter venue addresses
There’s an API for that
Google Geocoding API
developers.google.com/maps/documentation/geocoding/
10 Downing St, London
10 Downing St, London
{
"location" : {
"lat" : 51.5034066,
"lng" : -0.1275923
}
} This is called JSON
How does it work?
API call is an HTTP request
https://maps.googleapis.com/maps/api/geocode/json?address=10 Downing St, London
When do we call the API?
API for Beginners
API for Beginners
API for Beginners
Timeout Server
did the API call
not you,

neither your browser
Timeout Server
did the API call
not you,

neither your browser
APIs are consumed by programs
(not humans)
Are we done?
Raw GPS coordinates
API for Beginners
Developer should now
integrate the
Google Maps JS API
JS stands for JavaScript here
Let’s look at some code
I want the app to
send text messages
if a gig is cancelled
Step 1 - Sign up to Twilio
Step 2 - Fetch credentials
Step 3 - Write some ruby
require 'twilio-ruby'
account_sid = 'AC__________'
auth_token = '_____________'
client = Twilio::REST::Client.new(account_sid, auth_token)
client.messages.create(
from: '+336123456789',
to: '+3370000000000',
body: 'Hi buddy, you should attend Le Wagon!'
)
Step 4 - Run code
Your program sent a text!
WEBHOOKS
(API )-1
API for Beginners
Every 10 seconds,
call the API to fetch list of
Meetup attendees
Don’t call us, we’ll call you
Hollywood Principle
Meetup, please
call my server
as soon as
a new member has RSVP’d
Webhook
myapp.com/member_rsvpd
For incoming requests
Webhook vs API call
Meetup My app
WEBHOOK
API Call
META
Let’s take an example,
Wufoo form to capture leads
Trello for my sales team
Lead Management
WEBHOOK
Service A pushes data
as soon as available
API
Service B exposes methods
to read, create or update data
WEBHOOK
Wufoo pushes form entries
as soon as captured
API
Trello exposes methods
to create new cards
Introducing Zapier
API for Beginners
Zapier
Demo
When you’ll hit
Zapier's limit, come
learn to code at
Le Wagon!
Thank you!
Going further
http://www.slideshare.net/welkaim/api-part-1-introduction-to-technology-and-business-models
Photo Credits
• http://pixabay.com/en/phone-dial-old-arrangement-499991/
• https://www.flickr.com/photos/knowledge-test/10359484896/
• http://www.gentside.com/wall-e/wallpaper/page_4.html
• https://www.flickr.com/photos/cgc76/13637753574
• https://www.flickr.com/photos/nori_n/271373399
• https://www.flickr.com/photos/jnyemb/5225841771
• https://www.flickr.com/photos/booleansplit/5527628335
• https://www.flickr.com/photos/lizhaslam/13257286833
• https://www.flickr.com/photos/armandfrasco/8741186
• https://www.flickr.com/photos/photobunny_earl/2239452148
• https://www.flickr.com/photos/89228431@N06/11221050956

More Related Content

PDF
Git & GitHub for Beginners
PDF
Le Wagon - Javascript for Beginners
PPTX
What is an API?
PDF
Le Wagon - UI components design
PPT
Introduction to the Web API
PPTX
Api Testing
PPTX
SDLC (Software development life Cycle)
PPTX
Oracle FCCS: A Deep Dive
Git & GitHub for Beginners
Le Wagon - Javascript for Beginners
What is an API?
Le Wagon - UI components design
Introduction to the Web API
Api Testing
SDLC (Software development life Cycle)
Oracle FCCS: A Deep Dive

What's hot (20)

PDF
Techical Workflow for a Startup
PPTX
Node.js Express
PDF
Le Wagon - 2h Landing
PPT
Java Script ppt
PPTX
RESTful API - Best Practices
PPTX
PPTX
PDF
What is REST API? REST API Concepts and Examples | Edureka
PPTX
REST-API introduction for developers
PDF
Postman: An Introduction for Testers
PPTX
Maven ppt
PDF
API for Beginners
PPT
Maven Introduction
PDF
PPT
Postman.ppt
PPTX
Api Testing
PPTX
ReactJS presentation.pptx
PPTX
An Introduction To REST API
PPTX
Introduction to REST - API
Techical Workflow for a Startup
Node.js Express
Le Wagon - 2h Landing
Java Script ppt
RESTful API - Best Practices
What is REST API? REST API Concepts and Examples | Edureka
REST-API introduction for developers
Postman: An Introduction for Testers
Maven ppt
API for Beginners
Maven Introduction
Postman.ppt
Api Testing
ReactJS presentation.pptx
An Introduction To REST API
Introduction to REST - API
Ad

Viewers also liked (14)

PDF
How Le Wagon uses Trello
PDF
Le Wagon On Demand - Behind the scenes
PDF
Building Layouts with CSS
PDF
Le wagon UI & design crash course
PDF
Le Wagon - React 101
PDF
Le Wagon - Product Specs 101
PDF
Le Wagon - Web 101
PDF
Le Wagon - UI and Design Crash Course
PDF
Le Wagon's Product Design Sprint
PDF
Le Wagon - Bootcamp in Ruby on Rails, HTML, CSS and JavaScript
PDF
Le wagon Aix-Marseille - sketch
PDF
Le Wagon - Technical entrepreneurship
PDF
Le wagon - JavaScript for beginners
PDF
Le Wagon Brasil - Launching a Tech Product
How Le Wagon uses Trello
Le Wagon On Demand - Behind the scenes
Building Layouts with CSS
Le wagon UI & design crash course
Le Wagon - React 101
Le Wagon - Product Specs 101
Le Wagon - Web 101
Le Wagon - UI and Design Crash Course
Le Wagon's Product Design Sprint
Le Wagon - Bootcamp in Ruby on Rails, HTML, CSS and JavaScript
Le wagon Aix-Marseille - sketch
Le Wagon - Technical entrepreneurship
Le wagon - JavaScript for beginners
Le Wagon Brasil - Launching a Tech Product
Ad

Similar to API for Beginners (20)

PPTX
API Workshop: Deep dive into REST APIs
PDF
Twitter APIs for #MediaHackday
PPTX
Understanding REST APIs in 5 Simple Steps
PPTX
Understanding REST APIs in 5 Simple Steps
PDF
アプリで簡単にスタンプを販売するためのAPI開発
PDF
apidays LIVE Australia 2020 - Contract-first API development with Spot by Fra...
PDF
Developing apps using Perl
PDF
API-Entwicklung bei XING
PPT
Webservices
PPTX
From Ruby to Node.js
PPSX
AIR & API
PDF
How fiddling with GraphQL enhanced communications between our back and front ...
PPTX
Play Your API with MuleSoft API Notebook
PDF
Liferay Italy Symposium 2015 Liferay Mobile SDK and Liferay Screens
PDF
Build REST API's using Swagger and IBM Integration Bus IIB v10
PDF
The 7 Deadly Sins of API Design
PDF
Crafting APIs
PDF
Composable and streamable Play apps
PPTX
How to implement email functionalities with Mailjet api
PPTX
Real time Communication with Signalr (Android Client)
API Workshop: Deep dive into REST APIs
Twitter APIs for #MediaHackday
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
アプリで簡単にスタンプを販売するためのAPI開発
apidays LIVE Australia 2020 - Contract-first API development with Spot by Fra...
Developing apps using Perl
API-Entwicklung bei XING
Webservices
From Ruby to Node.js
AIR & API
How fiddling with GraphQL enhanced communications between our back and front ...
Play Your API with MuleSoft API Notebook
Liferay Italy Symposium 2015 Liferay Mobile SDK and Liferay Screens
Build REST API's using Swagger and IBM Integration Bus IIB v10
The 7 Deadly Sins of API Design
Crafting APIs
Composable and streamable Play apps
How to implement email functionalities with Mailjet api
Real time Communication with Signalr (Android Client)

Recently uploaded (20)

PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
artificial intelligence overview of it and more
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPT
tcp ip networks nd ip layering assotred slides
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Paper PDF World Game (s) Great Redesign.pdf
Unit-1 introduction to cyber security discuss about how to secure a system
Tenda Login Guide: Access Your Router in 5 Easy Steps
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
An introduction to the IFRS (ISSB) Stndards.pdf
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Design_with_Watersergyerge45hrbgre4top (1).ppt
SASE Traffic Flow - ZTNA Connector-1.pdf
international classification of diseases ICD-10 review PPT.pptx
artificial intelligence overview of it and more
522797556-Unit-2-Temperature-measurement-1-1.pptx
Module 1 - Cyber Law and Ethics 101.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
tcp ip networks nd ip layering assotred slides
Cloud-Scale Log Monitoring _ Datadog.pdf
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Decoding a Decade: 10 Years of Applied CTI Discipline
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx

API for Beginners