Here's what you might do with curl to get an API token: