Skip to content

Instantly share code, notes, and snippets.

@rjvdboon
rjvdboon / sports-tracker-download.js
Last active November 2, 2020 17:21 — forked from anonymous/sports-tracker-download.js
Download all workouts from sports-tracker
// based on this blog post:
// http://druss.co/2016/04/export-all-workouts-from-sports-tracker/
// then based on this gist implementation:
// https://gist.github.com/anonymous/9abc8d9c376bbc6aa853b477a50e8932
//
// I've changed it so you don't need to do the "Load More Workouts" (it is downloaded through the API)
// Added possible customizations (easy to switch between curl and powershell)
// Get the url to use from the current document
// Fix the token parsing, it failed because there is no trailing ';'
// Added a # token at the end of the download command so you don't need to post-process when using firefox
{
"openapi" : "3.0.1",
"info" : {
"title" : "Test API with base-middle-leaf inheritance",
"description" : "Test API",
"version" : "1.0.0"
},
"servers" : [ {
"url" : "https://example.com/test/api/v1"
} ],