Get developers to “it works” fast
The first five minutes with an SDK decide whether a developer keeps going or gives up. A quickstart’s only job is to get them from nothing to a successful API call as quickly as possible. This builder generates exactly that: prerequisites, install, authentication, one runnable first call, common use cases, and error handling — written idiomatically for the language you choose.
How it works
You pick a language and the tool emits the right install command and conventions for it: npm install with an import for JavaScript, pip install for Python, go get for Go, or gem install for Ruby. It then builds the authentication step around an environment variable rather than a hard-coded key, because secrets should never live in source.
The centerpiece is the first API call — a short snippet that instantiates your client class and calls the method you specify, printing the result. If it prints something, the developer knows install and auth both worked. The guide closes with a language-specific error-handling example showing how to catch the SDK’s typed error and read its status and message.
Tips and example
- Keep the first call trivial — a read like
customers.listis safer for a quickstart than a write that creates real data. - Always model the env-var pattern:
export API_KEY="..."then read it in code. Developers copy whatever your quickstart shows. - List two or three concrete use cases (create a customer, charge a card, list invoices) so the developer sees where to go next.
- Match the language’s idioms —
try/exceptin Python,errors.Asin Go — so the snippet looks native, not translated.