Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

API for Beginners

13,630 views

Published on

The API acronym is everywhere on the Internet. It seems like every great company offers an API. But what is it exactly?

This deck will present you the very concept of API with a simple metaphor, and then will take four exemples of very popular APIs integrated by more popular websites (Airbnb, Uber, etc...).

A deck by Sébastien Saunier, CTO @ Le Wagon (https://www.lewagon.com)

Published in: Internet
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

API for Beginners

  1. 1. APIs
 (for beginners) @ssaunier
  2. 2. Application Programming Interface
  3. 3. an used by with an Interface Programs to interact Application
  4. 4. Application
  5. 5. (User) Interface
  6. 6. Program
  7. 7. No (direct) human usage of APIs
  8. 8. Developers
  9. 9. APIs expose something useful
  10. 10. API
  11. 11. Developers write Programs which consumes APIs
  12. 12. API Consumption
  13. 13. Web APIs
  14. 14. http://www.programmableweb.com/category/all/apis
  15. 15. Google Maps JS API
  16. 16. AirBnB
  17. 17. Twilio API
  18. 18. UBER
  19. 19. As a developer,
  20. 20. I need GPS coordinates of venues to show next gigs in town on a map
  21. 21. Timeout content manager don’t know GPS coordinates of venues
  22. 22. Timeout content manager won’t manually enter GPS coordinates of venues
  23. 23. Timeout content manager will enter venue addresses
  24. 24. There’s an API for that
  25. 25. Google Geocoding API developers.google.com/maps/documentation/geocoding/
  26. 26. 10 Downing St, London
  27. 27. 10 Downing St, London { "location" : { "lat" : 51.5034066, "lng" : -0.1275923 } } This is called JSON
  28. 28. How does it work?
  29. 29. API call is an HTTP request
  30. 30. https://maps.googleapis.com/maps/api/geocode/json?address=10 Downing St, London
  31. 31. When do we call the API?
  32. 32. Timeout Server did the API call not you,
 neither your browser
  33. 33. Timeout Server did the API call not you,
 neither your browser
  34. 34. APIs are consumed by programs (not humans)
  35. 35. Are we done?
  36. 36. Raw GPS coordinates
  37. 37. Developer should now integrate the Google Maps JS API JS stands for JavaScript here
  38. 38. Let’s look at some code
  39. 39. I want the app to send text messages if a gig is cancelled
  40. 40. Step 1 - Sign up to Twilio
  41. 41. Step 2 - Fetch credentials
  42. 42. 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!' )
  43. 43. Step 4 - Run code
  44. 44. Your program sent a text!
  45. 45. WEBHOOKS (API )-1
  46. 46. Every 10 seconds, call the API to fetch list of Meetup attendees
  47. 47. Don’t call us, we’ll call you Hollywood Principle
  48. 48. Meetup, please call my server as soon as a new member has RSVP’d Webhook
  49. 49. myapp.com/member_rsvpd For incoming requests
  50. 50. Webhook vs API call Meetup My app WEBHOOK API Call
  51. 51. META
  52. 52. Let’s take an example,
  53. 53. Wufoo form to capture leads Trello for my sales team Lead Management
  54. 54. WEBHOOK Service A pushes data as soon as available API Service B exposes methods to read, create or update data
  55. 55. WEBHOOK Wufoo pushes form entries as soon as captured API Trello exposes methods to create new cards
  56. 56. Introducing Zapier
  57. 57. Zapier
  58. 58. Demo
  59. 59. When you’ll hit Zapier's limit, come learn to code at Le Wagon!
  60. 60. Thank you!
  61. 61. Going further http://www.slideshare.net/welkaim/api-part-1-introduction-to-technology-and-business-models
  62. 62. 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

×