- Download dailymile-cli-2.1.jar from the download page
- Retrieve your oauth token from dailymile, this is how dailymile-cli will be given access to your account (don't worry, it isn't stored anywhere).
- If prompted, enter your dailymile login information and then allow access for "Plater's Code Bulk Import"
- You will be redirected to an invalid page, that is expected. Grab the oauth token from the url (it's the long string after access_token=).
- From a command prompt, such as cmd or cygwin on Windows, run the executable jar. Below is an example run with <...> indicating where you need to provide information. You can skip the first few prompts since I provided the oauth url above.
$ java -jar dailymile-cli-2.1.jar
Please enter your client id:
<press enter>
Please enter your redirect url:
<press enter>
Please open a browser and go to:
<press enter>
Please enter your oauth token:
<enter oauth token (captured in step 2)>
Please enter the converison type, allowed types: [nikeplus,runningahead]
<enter runningahead>
Please enter full path to input file:
<enter path to file>
Please enter your client id:
<press enter>
Please enter your redirect url:
<press enter>
Please open a browser and go to:
<press enter>
Please enter your oauth token:
<enter oauth token (captured in step 2)>
Please enter the converison type, allowed types: [nikeplus,runningahead]
<enter runningahead>
Please enter full path to input file:
<enter path to file>
If you are looking to do something similar, take a look at dailymile-cli, it might be able to help you out (or at least be extended to do what you need).