This is a Javascript client library for Reporter App data from Dropbox with Node.js. It uses the awesome q async library (https://github.com/kriskowal/q).
It's also still very much in progress.
- Create an app in the developers section of Dropbox with access to only your text files.
- Add
http://localhost:8912/oauth_callback
as an OAuth redirect URI. - Add your Dropbox key and secret to
config/index.js
. - Run
npm install
in app directory. - Run
node index.js
. - Navigate to localhost:3004 from your browser.
- Add returned token to
config/index.js
.
implement caching (dropbox read file and read directory calls cached for 15 mins)- expose specific data
- get all answers to a specific question on a date/range of dates
- get specific sensor data on a date/range of dates
- turn into Node module (via npm)
Copyright (c) 2014 Amalia Viti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.