Top Banner
Your API Consumers Aren’t Who You Think They Are
28
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Your API Consumers Aren’t Who You Think They Are

Your API Consumers Aren’t Who You Think They Are

Page 2: Your API Consumers Aren’t Who You Think They Are

Hello.

- I’m Bryan Helmig- Co-founder @ Zapier- CWO (chief whiskey officer)

Page 3: Your API Consumers Aren’t Who You Think They Are

automation platform

Page 4: Your API Consumers Aren’t Who You Think They Are

Zapier ♥ APIs. A lot.

- h’s of m’s API calls/mo

- 300k+ unique integrations across 200+ APIs

Page 5: Your API Consumers Aren’t Who You Think They Are

We’ve noticed a bitof a shift....

Page 6: Your API Consumers Aren’t Who You Think They Are

A shift in API consumption.

Page 7: Your API Consumers Aren’t Who You Think They Are

Who you might think consumes

your API...

Page 8: Your API Consumers Aren’t Who You Think They Are

"Is this really RESTful?"

"Can you do bulk multipart uploads?"

Page 9: Your API Consumers Aren’t Who You Think They Are

Who actually consumes your

API...

Page 10: Your API Consumers Aren’t Who You Think They Are

"Where can I buy the API* tokens?"

* pronounced "appy"

"How do I hook my MS Access into the REST?"

Page 11: Your API Consumers Aren’t Who You Think They Are

Non-coders are increasingly

consuming APIs.

Page 12: Your API Consumers Aren’t Who You Think They Are

This is awesome.

Page 13: Your API Consumers Aren’t Who You Think They Are

A•P•I n. enable missing features

(some assembly required)

Page 14: Your API Consumers Aren’t Who You Think They Are

But will they feel empowered or overwhelmed?

Page 15: Your API Consumers Aren’t Who You Think They Are

What sort of crazy features are they

dreaming up?

Page 16: Your API Consumers Aren’t Who You Think They Are

CRUD automation.

Page 17: Your API Consumers Aren’t Who You Think They Are

What can we do to help these users consume APIs?

What can we do to improve APIs for CRUD automation?

Page 18: Your API Consumers Aren’t Who You Think They Are

Easier Documentation

Better introduction.

Provide a wedge.

Live data.

Page 19: Your API Consumers Aren’t Who You Think They Are

Multiple Auth Mechanisms

OAuth for platforms...

...API keys or basic auth for OMWP.

Live code.

Page 20: Your API Consumers Aren’t Who You Think They Are

Useful Error Messages

401: Not authenticated.

404: Not found.

Serialize failures the same way.

Page 21: Your API Consumers Aren’t Who You Think They Are

Do What I Mean

A sufficiently intelligent error...

...why not just do what they meant?

Within reason, of course.

Page 22: Your API Consumers Aren’t Who You Think They Are

What can we do to help these users consume APIs?

What can we do to improve APIs for CRUD automation?

Page 23: Your API Consumers Aren’t Who You Think They Are

Flexible Endpoints

Automation is long tail.

Order, filter, paginate, hydrate...

Complexity.

Page 24: Your API Consumers Aren’t Who You Think They Are

Get Real (Time)

Naive cRud means polling.

Webhooks are great!

Skip long-polling or websockets.

Page 25: Your API Consumers Aren’t Who You Think They Are

PATCH & Upsert

PATCH fixes unintentional nulls.

Upsert handles uniqueness.

Less complexity!

Page 26: Your API Consumers Aren’t Who You Think They Are

What can we do to help these users consume APIs?

What can we do to improve APIs for CRUD automation?

Page 27: Your API Consumers Aren’t Who You Think They Are

Who is really at the end of your API requests?