introduction to apis

18
WHAT IS AN API? The basics: what should I know? Camille Baldock, @camille_

Upload: camille-baldock

Post on 25-Jan-2015

307 views

Category:

Software


3 download

DESCRIPTION

Quick introduction to APIs: what they are and why they are important. Talk given in February 2014 at Girl Geek Meetup. http://camillebaldock.co.uk/introduction-to-apis/ Website: http://camillebaldock.co.uk Twitter: @camille_

TRANSCRIPT

Page 1: Introduction to APIs

WHAT IS AN API?The basics: what should I know?

Camille Baldock, @camille_

Page 2: Introduction to APIs

ABOUT ME

• I’m a software engineer !

• I mostly work with APIs, developing them and scaling them

Page 3: Introduction to APIs

DEFINITION• Application Programming Interface

!

• An Application Programming Interface (API) is a particular set of rules and specifications that a software program can follow to access and make use of the services and resources provided by another particular software program that implements that API.

Page 4: Introduction to APIs

IT’S JUST AN INTERFACE

• A website is an interface between a user and a computer.

!

• An API is a programmable interface between two computers.

Page 5: Introduction to APIs

AN INTERFACE TO WHAT ?

Page 6: Introduction to APIs

WHAT APIS HAVE I USED TODAY ?

Page 7: Introduction to APIs

API HISTORY

• Ebay: 2000

• Facebook: 2002

• Flickr : 2004

• Twitter : 2006

Page 8: Introduction to APIs

READ VS WRITE APIS

• Read APIs

!

• Write APIs

Page 9: Introduction to APIs

WHY HAVE AN API ?

• Outsource innovation

• Distributed Growth

• Syndication

• Revenues and New Business

Page 10: Introduction to APIs

HOW TO MAKE MONEY FROM AN API

Page 11: Introduction to APIs

TYPES OF APIS

• Public

• Partner

• Private

Page 12: Introduction to APIs

A TIMELINE OF APIS

Page 13: Introduction to APIs

MASHUPS

Page 14: Introduction to APIs

TECHNOLOGIES• XML: Get Facebook public feed

Page 15: Introduction to APIs

TECHNOLOGIES• JSON: Posting a direct message on Twitter

• https://api.twitter.com/1.1/direct_messages/new.json

Page 16: Introduction to APIs

WHAT MAKES A GOOD API?• Simple, open and easy to get started

• The underlying service

• The right business model

• Developer support (the developers become your client !)

Page 17: Introduction to APIs

JOURNEY TO A GOOD API

• Long journey: developer documentation, sample apps

• Iterate until your interface is the way you and your clients can work best together

Page 18: Introduction to APIs

WHAT IS AN API ?