PHP script to get the total mileage for the year and the 5 latest distances in a JSON format.
Add your log access key to the file to get stats from your RunningAHEAD log. The log access key is the long string of numbers and letters in the Training log access URL in Options > My Log Preferences. Also, make sure you have training log access set to "Allow everyone to see my running log".