Here’s how you choose between an SDK and an API