How about a good ol' fashioned export button?
We're working on it! We plan to offer the ability to export an Excel or JSON file with all of your data organized by data type in the near future. We do not yet have an estimate as a feature like this is tough to test, but if you want to add your voice to those requesting export capabilities (and so we can let you know when we ship it) feel free to drop us a note using the Help Widget to the lower right or by emailing email@example.com. Thank you!
Downloading all of your Note data from the Command-Line
On a Mac:
Open Terminal, either by searching for it with or by navigating through the following:
On OS X, open your Applications folder, then open the folder. Open the Terminal application.
On a PC:
Running the queries on Terminal or Command Line.
Note: You must install the cURL package in order to run cURL commands in Windows. You can download the correct cURL executable https://curl.haxx.se/dlwiz/
After you open Terminal or command line, type the following, replacing
curl -v -X POST -u <firstname.lastname@example.org> https://api.tidepool.org/auth/login
After hitting enter, you will be prompted for your password.
You will then receive a blurb similar to:
HTTP/1.1 200 OK access-control-allow-headers: authorization, content-type, x-tidepool-session-token access-control-allow-methods: GET, POST, PUT access-control-allow-origin: * access-control-expose-headers: x-tidepool-session-token access-control-max-age: 0 content-type: application/json date: Wed, 10 Feb 2016 21:00:21 GMT x-tidepool-session-token: eXYZyJhbGciOiJIUzI1NiaIsInR5cCI6IkwerwpXVCJ9.eyJkdXIiOjIuNTkyZSswNiwiZXhwIjox12345zMwMDIxLCJzdnIiOiJubyIsInVzciI6ImI0NTFhNmEwNDcifQ.WolTlCFxCIJjf5AbjabcdePqXztSxezUYzY-gwIJH-g Content-Length: 170 Connection: keep-alive
The two important parts here are the "x-tidepool-session-token" ( ...IJH-g in this example) and the (0460512abc in this example)
You will then take your Session Token and userID and use them in a new query:
curl -s -X GET -H "x-tidepool-session-token: <your-session-token>" -H "Content-Type: application/json" 'https://api.tidepool.org/message/notes/<userid>' > data_download.json
Again, please replace <your-session-token> with your actual token string, and replace <your-user-id> with your userid from above. You can change "data_download.json" to any file name you like.
Optionally specify starttime and endtime in ISO date/time format (e.g. "?starttime=2015-10-10T15:00: 00.000Z&endtime=2015-10-11T15:00:00.000Z").
After hitting enter, a file called data_download.json will appear on your computer. The easiest way to find this file is to search for it by name using your computer's search functionality.
Please let us know via email@example.com if you have any questions!