JSON
yegor256 opened this issue · comments
Would be great to have an ability to get the data in JSON format, not only as s badge.
Which fields would be interesting for the JSON output, besides the current head and the hoc?
You can now get the HoC result as JSON by appending /json
to the request path: https://hitsofcode.com/github/vbrandl/hoc/json.
The result looks like this:
{
"head": "d609f9bf432921098f62c7dedae04a4c89ed04ef",
"count": 7609
}
@vbrandl this is exactly what I need, thanks!