mvn package
java -jar target/runkeeper-client-0.0.1-SNAPSHOT.jar -convert polar.tcx > runkeeper.json java -jar target/runkeeper-client-0.0.1-SNAPSHOT.jar -upload polar.tcx -a $4
./polar-to-runkeeper.sh <access_token>
Open browser and confirm access to your account
https://runkeeper.com/apps/authorize?client_id=&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fback
Extract code from redirect URL
http://localhost:3001/back?code=
curl https://runkeeper.com/apps/token -d "grant_type=authorization_code&code=&client_id=&client_secret=&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fback"
curl -i https://api.runkeeper.com/user?access_token=
curl -i https://api.runkeeper.com/profile?access_token=
curl -i https://api.runkeeper.com//fitnessActivities?access_token=
curl -o fitnessActivity.rk -i https://api.runkeeper.com//fitnessActivities/522434266?access_token=
curl -X POST -H "Content-Type: application/vnd.com.runkeeper.NewFitnessActivity+json" --data "{'start_time':'Thu, 4 Mar 2015 16:49:49','type':'Running','duration':3389.0,'notes':'Imported'}" -i https://api.runkeeper.com//fitnessActivities?access_token=
curl -H "Content-Type: application/vnd.com.runkeeper.NewFitnessActivity+json" --data "@output.json" -i https://api.runkeeper.com//fitnessActivities?access_token=