4 ms·
Ask HN: Would you use an API for personal access tokens?
In an ideal world, getting an API key for access to your own data should be as simple as typing your username and password, and instead of clicking "Login", you click "Get API key".
"Login" means "I, a human, want to access this service"
"Get API key" means "A bot will be accessing this service on my behalf"
The world is not ideal though.
Some services offer personal access tokens but not all do. What if we had a command line tool such as:
$ get-access-token <service-name>
username:
password:
<personal-access-token-here>
$
Where service-name would be any service out there with an API: gmail, github, airtable, twitter, etc.
Question is, would you be interested in such a tool? Any thought or comment would be appreciated.
- zzo38computer 8y agoYes, I agree it can be helpful (although I do not use any of the services you listed). Although I would have want the server to be defined in such a way, e.g. curl 'https://zzo38:Example@example.org/access_token' Since it isn't, making a program for this purpose can be helpful.