SlideShare ist ein Scribd-Unternehmen logo
1 von 11
iSyndica Building an API Hackerspace.sg, April 20th 2010
Good API Design It’s a great asset. Or a liability.
What makes an API ‘Good’? It just works.
Three Key Guidelines Labels/ GetLabel?id=1 GetLabelRoots GetLabelChildren?id=1 Keep it atomic.
Three Key Guidelines GreatExamples eBay Facebook Flickr Google Data Twitter Document well.
Three Key Guidelines .NET: T4 Ruby:Rgen Python: Cog, Cheetah Java: XDoclet Code generation is your friend.
API Security Types Developer Key Username/Password Digest Token
Our Choice
Mobile OAuth?
Have Fun There’s no “Perfect API”.
Thanks! www.isyndica.com nqadir@isyndica.com

Weitere ähnliche Inhalte

Andere mochten auch (20)

Unofficial Transcript5Harrington
Unofficial Transcript5HarringtonUnofficial Transcript5Harrington
Unofficial Transcript5Harrington
 
09 10 fotos-texto novoneyra
09 10 fotos-texto novoneyra09 10 fotos-texto novoneyra
09 10 fotos-texto novoneyra
 
Ministry Net 2009--Upgraded
Ministry Net 2009--UpgradedMinistry Net 2009--Upgraded
Ministry Net 2009--Upgraded
 
SDC Sales Presentation
SDC Sales PresentationSDC Sales Presentation
SDC Sales Presentation
 
Solis, un paseo por la creación de su obra
Solis, un paseo por la creación de su obraSolis, un paseo por la creación de su obra
Solis, un paseo por la creación de su obra
 
ser saudável é fácil
ser saudável é fácilser saudável é fácil
ser saudável é fácil
 
Seminário 17.06
Seminário 17.06Seminário 17.06
Seminário 17.06
 
Frank locker fotos
Frank locker fotosFrank locker fotos
Frank locker fotos
 
EquaçãO Do 1º Grau Office 2003
EquaçãO Do 1º Grau Office 2003EquaçãO Do 1º Grau Office 2003
EquaçãO Do 1º Grau Office 2003
 
ORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULAR
ORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULARORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULAR
ORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULAR
 
Mezcla Promociones
Mezcla PromocionesMezcla Promociones
Mezcla Promociones
 
KALSEE Certificate
KALSEE CertificateKALSEE Certificate
KALSEE Certificate
 
DHS Diploma
DHS DiplomaDHS Diploma
DHS Diploma
 
MEIO AMBIENTE
MEIO AMBIENTEMEIO AMBIENTE
MEIO AMBIENTE
 
beng
bengbeng
beng
 
Praktikumsreferenz_Lu Huang
Praktikumsreferenz_Lu HuangPraktikumsreferenz_Lu Huang
Praktikumsreferenz_Lu Huang
 
4
44
4
 
Hoy y no manana
Hoy y no mananaHoy y no manana
Hoy y no manana
 
Cronograma. 11ª conf. mun. de saúde
Cronograma. 11ª conf. mun. de saúdeCronograma. 11ª conf. mun. de saúde
Cronograma. 11ª conf. mun. de saúde
 
Hulis Vnu
Hulis   VnuHulis   Vnu
Hulis Vnu
 

Mehr von e27

Mehr von e27 (20)

Insights from Localising and Evolving LINE through Partnerships
Insights from Localising and Evolving LINE through PartnershipsInsights from Localising and Evolving LINE through Partnerships
Insights from Localising and Evolving LINE through Partnerships
 
Echelon Thailand 2017 – Cybersecurity Resilience by Crowd Wisdom
Echelon Thailand 2017 – Cybersecurity Resilience by Crowd WisdomEchelon Thailand 2017 – Cybersecurity Resilience by Crowd Wisdom
Echelon Thailand 2017 – Cybersecurity Resilience by Crowd Wisdom
 
Echelon Thailand 2017 – Fundraising & Term Sheet 101
Echelon Thailand 2017 – Fundraising & Term Sheet 101Echelon Thailand 2017 – Fundraising & Term Sheet 101
Echelon Thailand 2017 – Fundraising & Term Sheet 101
 
Echelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEs
Echelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEsEchelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEs
Echelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEs
 
Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...
Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...
Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...
 
Echelon Thailand 2017 – Hiring 101
Echelon Thailand 2017 – Hiring 101Echelon Thailand 2017 – Hiring 101
Echelon Thailand 2017 – Hiring 101
 
Echelon Thailand 2017 – Leveraging On Scalable Technology To Expand Regionally
Echelon Thailand 2017 – Leveraging On Scalable Technology To Expand RegionallyEchelon Thailand 2017 – Leveraging On Scalable Technology To Expand Regionally
Echelon Thailand 2017 – Leveraging On Scalable Technology To Expand Regionally
 
Disrupting the Food / Agri Landscape in Southeast Asia With Tech Innovation
Disrupting the Food / Agri Landscape in Southeast Asia With Tech InnovationDisrupting the Food / Agri Landscape in Southeast Asia With Tech Innovation
Disrupting the Food / Agri Landscape in Southeast Asia With Tech Innovation
 
Echelon Asia Summit 2015: Startup Metrics for Mobile Pirates
Echelon Asia Summit 2015: Startup Metrics for Mobile PiratesEchelon Asia Summit 2015: Startup Metrics for Mobile Pirates
Echelon Asia Summit 2015: Startup Metrics for Mobile Pirates
 
Echelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UP
Echelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UPEchelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UP
Echelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UP
 
Echelon Asia Summit 2015: State of App Nation: Asia Edition
Echelon Asia Summit 2015: State of App Nation: Asia EditionEchelon Asia Summit 2015: State of App Nation: Asia Edition
Echelon Asia Summit 2015: State of App Nation: Asia Edition
 
Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...
Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...
Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...
 
Echelon Asia Summit 2015: The Future of Payments
Echelon Asia Summit 2015: The Future of PaymentsEchelon Asia Summit 2015: The Future of Payments
Echelon Asia Summit 2015: The Future of Payments
 
Echelon Asia Summit 2015: Build Your Multi-$B Category Outside of The Valley
Echelon Asia Summit 2015: Build Your Multi-$B Category Outside of The ValleyEchelon Asia Summit 2015: Build Your Multi-$B Category Outside of The Valley
Echelon Asia Summit 2015: Build Your Multi-$B Category Outside of The Valley
 
Why online advertising is not a dirty word - Echelon 2014
Why online advertising is not a dirty word - Echelon 2014Why online advertising is not a dirty word - Echelon 2014
Why online advertising is not a dirty word - Echelon 2014
 
How do Technology Companies And Venture Capital Firms Around The World Maximi...
How do Technology Companies And Venture Capital Firms Around The World Maximi...How do Technology Companies And Venture Capital Firms Around The World Maximi...
How do Technology Companies And Venture Capital Firms Around The World Maximi...
 
Building a Marketplace Business
Building a Marketplace BusinessBuilding a Marketplace Business
Building a Marketplace Business
 
The E-commerce Revolution: How the Industry is Evolving and What the Future H...
The E-commerce Revolution: How the Industry is Evolving and What the Future H...The E-commerce Revolution: How the Industry is Evolving and What the Future H...
The E-commerce Revolution: How the Industry is Evolving and What the Future H...
 
The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...
The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...
The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...
 
What is Wrong With Angel Investors And Accelerators
What is Wrong With Angel Investors And AcceleratorsWhat is Wrong With Angel Investors And Accelerators
What is Wrong With Angel Investors And Accelerators
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

iSyndica - Building an API

Hinweis der Redaktion

  1. An API can be a great asset or a liabilityGood API’s capture trafficOf-boarding cost can be prohibitiveBad API’s can be a huge drain in terms of supportOnce an API is published and in production, it becomes hard to change.
  2. Ease of useEasy to learnEasy to add functionalityGets the job done
  3. API's need to be Stateless - Every request needs to contain all of the information necessary to service the request. Every API should be atomic - It does one logical operation and one alone and doesn't rely on any sequential calls.API’s should abstract the implementation detailUse self explanatory name.Avoid ambiguous overloading
  4. Documentation – It’s a necessary evil, there are too many API’s out there that don’t have enough usable documentation.Be consistent with naming conventions throughout the API.Modularize your code and try to think in terms of interfaces and not implementation types
  5. Attempt to incorporate the patterns already existing in the development platform of your choice.Try to reduce “boiler plate” code. Cut & Paste is very error prone. Use Code generation where ever possible.Our 80/20: write code 20% of the time.
  6. Developer Key – Unique developer identifier sent as part of every call. Not so secure.Username / Password – Username & Password sent as part of every call. Not so secure unless using HTTPS which is 90% slower than HTTPDigest – Using an security algorithm to stamp a call with a digest for authentication. Fairly secure and easy to implement.Token – Using an identification token
  7. OAuth is token based authentication mechanisms that standardizes secure API authorization for desktops & web applicationsOAuth stake holdersProviders – Software applications that provide a service on the web i.e. API enabled websites/web-services. For eq. Facebook, Flickr etcUsers – Users of a service, average joe’s who own an account with the providersConsumers –3rd party Software applications that proxy for the users with the providers. For eqFacebook Mobile, iSyndica VDSAdvantagesOnly the provider sees your username / passwordThe token is easily tracked by the provider and as a user you can limit/revoke the permissionUse of a secret key makes phishing the token useless.DisadvantagesComplex implementation
  8. No cleartext username and password ever stored, Username & Password are sent over HTTPS – Slow but secureOauth Loop is instantaneous, No need for the user to go through complexOAuth loops
  9. API design isn’t easy but incredibly funAdds incredible valueA group effortThere is no “Perfect API” that fits all the requirement.
  10. API design isn’t easy but incredibly funAdds incredible valueA group effortThere is no “Perfect API” that fits all the requirement.