Skip to content

Instantly share code, notes, and snippets.

rjvdboon rjvdboon

View GitHub Profile
View testapi.json
{
"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"
} ],
@rjvdboon
rjvdboon / sports-tracker-download.js
Last active Jun 1, 2020 — forked from anonymous/sports-tracker-download.js
Download all workouts from sports-tracker
View sports-tracker-download.js
// 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
You can’t perform that action at this time.