1.0.1 • Published 9 months ago

umtrackr v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Trackr

Clientside library to get or add values to Trackr server. See GitHub project for more details.

Examples

Example nodejs script to push/pull data:

const trackr = require('umtrackr')

const ValuesAPI = new trackr('[api key]')

async function main() {
    let res;

    for (i = 1; i < 6; i++) {
        res = await ValuesAPI.addValue(1, i)
        console.log(res)
    }

    res = await ValuesAPI.addValues(1, [6, 7, 8, 9, 10])
    console.log(res)

    res = await ValuesAPI.getValues(1, 0, 10, 'desc')
    console.log(res)
}

main()
1.0.1

9 months ago

1.0.0

9 months ago