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

APIs Need UX Too

Avatar for John Athayde John Athayde
November 17, 2022
4

APIs Need UX Too

We've all been there: Attempting to work with a textual interface to a product or service and the responses come back with no clear error, or what we might change to get a better response. The built-in help is non-existent. We end up banging our head against the keyboard and getting fed up. It doesn't have to be this way. UX is not only “the pretty” or how something looks, but it is in fact about how things work. We'll look at some good and bad API interfaces (and command line tools) and talk about the best practices we can implement in our own products to help our end users have a better experience.

Avatar for John Athayde

John Athayde

November 17, 2022

Transcript

  1. UX

  2. LEVEL OF SATISFACTION THEY ATTAIN FROM USING IT THE PROMPTNESS

    WITH WHICH USERS LEARN TO USE SOMETHING THE EFFICIENCY THEY ATTAIN WHILE MAKING USE OF IT REMEMBERHOW TO USE IT HOW EASY IT IS FOR THEM TO ERROR-PRONEIT IS HOW
  3. User Experience Optimize user fl ows through the app •

    Don’t interrupt the user’s fl ow • User should know where they are at all times • Reduce clicks to achieve a desired result • Reduce friction in the experience
  4. User Experience Optimize user fl ows through the app •

    Don’t interrupt the user’s developer’s fl ow • User Developer should know where they are at all times • Reduce clicks calls to achieve a desired result • Reduce friction in the experience
  5. Authorize Me! API Keys OAuth Tokens JWT Tokens Great for

    ge tt ing started fast Good for accessing user data Good for limiting database lookups
  6. Authorize Me! API Keys OAuth Tokens JWT Tokens Great for

    ge tt ing started fast Good for accessing user data Good for limiting database lookups Use if you’re only building for developers Use if you want easy access without digging through documentation Use in concert with OAuth to reduce database lookups
  7. “OAuth Butt” “Many organizations unveiled their API but discover a

    certain dilemma that makes them believe that they need to operate outside of OAuth 2.0's standard to accomplish their goals. If you fi nd yourself describing your API and saying something like "We use OAuth 2.0, but with API keys," then you might be an OAuth Bu tt . […] It makes it harder to integrate with your API and as a result could hinder widespread adoption.” — James Carr, Zapier h tt ps://zapier.com/engineering/oauth-bu tt /
  8. — usability.gov h tt ps://www.usability.gov/what-and-why/information-architecture.html “Information architecture (IA) focuses on

    organizing, structuring, and labeling content in an effective and sustainable way. The goal is to help users find information and complete tasks. To do this, you need to understand how the pieces fit together to create the larger picture, how items relate to each other within the system.”
  9. Good Documentation Makes the World Go Round • Ge tt

    ing Started Guide, ideally in each language for which you have an SDK • A clear place to ask questions • ACCURATE up-to-date reference • Sample applications • Bonus: ongoing blog posts
  10. LEVEL OF SATISFACTION THEY ATTAIN FROM USING IT THE PROMPTNESS

    WITH WHICH USERS LEARN TO USE SOMETHING THE EFFICIENCY THEY ATTAIN WHILE MAKING USE OF IT REMEMBERHOW TO USE IT HOW EASY IT IS FOR THEM TO ERROR-PRONEIT IS HOW