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

API 101, What, Where, When

API 101, What, Where, When

APIs could be scary at first, but they don't have to.

Here is a workshop that explains everything you know about APIs.

I usually do this workshop for first-timers hackathon participants.

Nicolas Grenié

October 11, 2019
Tweet

More Decks by Nicolas Grenié

Other Decks in Technology

Transcript

  1. About Typeform Founded in 2013 $35M series B ‍‍ 200

    employees 30+ countries VideoAsk launched API platform
  2. UI

  3. UI

  4. Step 1. - Run without coding In the browser (GET

    requests) In the terminal (using curl) Using apps like Postman or Paw Debug API calls, decoupled from your code
  5. Advantage for API provider Who is calling the API Charging

    for API usage Turn off bad users Restrict access to your own data
  6. Let’s try! 1. Read Typeform API documentation https://developer.typeform.com/ 2. Get

    a Personal Token 3. Add token to API call using Authorization header
  7. Ex2: Get all the responses of a form GET Request

    on api.typeform.com/forms/{form_id}/responses documentation How to get someone else’s forms?
  8. Ex3: Implement oAuth Read detailed article here to learn about

    oAuth Create an Application on Typeform Use received token to make calls Store user details in database Display profile info after logging in
  9. Ex4: Deal with webhooks Add {glitchapp}/webhook as webhook to your

    form Send test webhook event Find ids of fields you want to display Test it! http://bit.ly/tf-hackupc-rate