Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Future of Web APIs

8ec1383b240b5ba15ffb9743fceb3c0e?s=47 Phil Nash
September 30, 2014

The Future of Web APIs

APIs are changing the way we build web applications. Services that once took months to build can now be integrated in minutes with the power of third party API platforms. In this talk, Phil demonstrates the current state of API platforms, using the Twilio problem to demonstrate how many companies are revolutionising antiquated industries with modern software. To wrap up, we speculate on the future of application development.

8ec1383b240b5ba15ffb9743fceb3c0e?s=128

Phil Nash

September 30, 2014
Tweet

Transcript

  1. FUTURE OF WEB APIS

  2. Phil Nash @philnash philnash@twilio.com

  3. FUTURE OF WEB APIS

  4. WEB APIS?

  5. Web APIs? •  WebAPI •  ASP.NET Web API •  HTTP

    APIs
  6. THE (RECENT) PAST

  7. APIS AS AN AFTERTHOUGHT

  8. None
  9. None
  10. c l i e n t = T w i

    t t e r : : R E S T : : C l i e n t . n e w d o | c o n f i g | c o n f i g . c o n s u m e r _ k e y = " Y O U R _ C O N S U M E R _ K E Y " c o n f i g . c o n s u m e r _ s e c r e t = " Y O U R _ C O N S U M E R _ S E C R E T " c o n f i g . a c c e s s _ t o k e n = " Y O U R _ A C C E S S _ T O K E N " c o n f i g . a c c e s s _ t o k e n _ s e c r e t = " Y O U R _ A C C E S S _ S E C R E T " e n d c l i e n t . u p d a t e ( " H e l l o f r o m F O W A ! " ) 0 1 . 0 2 . 0 3 . 0 4 . 0 5 . 0 6 . 0 7 . 0 8 .
  11. None
  12. None
  13. None
  14. APIS NOW

  15. API FIRST

  16. API = PRODUCT

  17. None
  18. None
  19. None
  20. None
  21. THE TELEPHONY PROBLEM

  22. The telephony problem •  Old •  Hardware backed •  Expensive

    •  Slow
  23. None
  24. DEMO TIME!

  25. None
  26. WORKING WITH HTTP APIS

  27. Working with HTTP APIs c u r l - X

    P O S T h t t p s : / / a p i . t w i l i o . c o m / 2 0 1 0 - 0 4 - 0 1 / A c c o u n t s / { A C C O U N T _ S I D } / M e s s a g e s . j s o n - d " B o d y = H e l l o % 2 0 F O W A ! " \ - d " F r o m = Y O U R _ T W I L I O _ N U M B E R " \ - d " T o = P H O N E _ N U M B E R " \ - u ' { A C C O U N T _ S I D } : { A U T H _ T O K E N } ' 0 1 . 0 2 . 0 3 . 0 4 . 0 5 .
  28. HELPER LIBRARIES

  29. Helper libraries r e q u i r e '

    t w i l i o - r u b y ' c l i e n t = T w i l i o : : R E S T : : C l i e n t . n e w ( A C C O U N T _ S I D , A U T H _ T O K E N ) c l i e n t . m e s s a g e s . c r e a t e ( f r o m : Y O U R _ T W I L I O _ N U M B E R , t o : P H O N E _ N U M B E R , b o d y : ' H e l l o F O W A ! ' ) 0 1 . 0 2 . 0 3 . 0 4 . 0 5 . 0 6 . 0 7 .
  30. Helper libraries v a r c l i e n

    t = r e q u i r e ( ' t w i l i o ' ) ( ' A C C O U N T _ S I D ' , ' A U T H _ T O K E N ' ) ; c l i e n t . s e n d M e s s a g e ( { f r o m : Y O U R _ T W I L I O _ N U M B E R , t o : P H O N E _ N U M B E R , b o d y : ' H e l l o F O W A ! ' } , f u n c t i o n ( e r r , r e s p o n s e ) { / / d o s o m e t h i n g w i t h r e s p o n s e } ) ; 0 1 . 0 2 . 0 3 . 0 4 . 0 5 . 0 6 . 0 7 . 0 8 .
  31. THE FUTURE

  32. The future •  More functionality •  Better functionality •  Faster

    development time
  33. FRAMEWORKS + WEB APIS

  34. None
  35. WEB APIS ARE AN OPPORTUNITY

  36. Recap •  Web APIs were an afterthought •  API first

    makes multi platform apps easier •  APIs are now products •  APIs can be the foundation of your apps
  37. ONWARDS!

  38. Thanks! @philnash philnash@twilio.com