API documentation
There is just one endpoint at https://rc.honk.li/api/log.
It takes a log_id
parameter, which can supplied with either formdata or JSON. The JSON requires a
Content-Type: application/json
header.
curl --request POST \ --data "log_id=ch35u1e9nc70954ah9n0" \ https://rc.honk.li/api/log
curl --request POST \
--data '{"log_id": "ch35u1e9nc70954ah9n0"}' \
--header "Content-Type: application/json" \
https://rc.honk.li/api/log
The response will be a game log in Tenhou JSON format, with no additional information, or an error in this shape:
{"errors":{"log_id":["should be 20 character(s)"]}}
Use status codes to determine whether the response is valid.