I've talked to friend of mine. And he mentioned it would be nice to have BBS with the API. Something like You would have Sysop authenticated over web call (e.g. curl https://bbs.local/api/auth?username=sysop&password=xxxyyyzzz) thus obtaining security token. And then possible use it in a bash script or so.
Please, please, please never put a password in plaintext like that, even if using https.
Exchanging credentials for an auth token is pretty standard practice, though you should use use payload/body (e.g. with JSON) vs URL
paramaters which can end up in logs, etc.
...but to the original question, when would someone actually use such an API? I can't really imagine a scenario like the example. I can imagine querying various bits of info & some boards do allow access to message bases via API for example.
O.K. thank You for clearing things up. Would that mean the password is better to be passed encrypted? I mean in the API case ...
Sysop: | Kurt Weiske |
---|---|
Location: | Aptos, CA |
Users: | 157 |
Nodes: | 6 (0 / 6) |
Uptime: | 24:24:30 |
Calls: | 9,928 |
Calls today: | 3 |
Files: | 12,140 |
D/L today: |
1 files (7K bytes) |
Messages: | 138,834 |