SkillAgentSearch skills...

Rescuetime.js

An API client for rescuetime.com

Install / Use

/learn @willwashburn/Rescuetime.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

rescuetime.js Build Status

An API client for rescuetime.com

Note: This is in super alpha and really hasn't been tested or used. Feedback and PR's welcome!

Install

npm install rescuetime.js

Usage

You can make calls to the api like so:

Note: I suggest you use dotenv to store your API key since you definitely do not want that in version control.


   var Rescuetime = require('rescuetime.js').create('YOUR_API_KEY')

   var parameters = {
        pv: 'rank',
        rk: 'productivity'
    }

    Rescuetime.request('GET', 'anapi/data', parameters, function(err,response) {
         console.log(res)
    })

You can also use promises if that's your squeeze


   var parameters = {
        pv: 'rank',
        rk: 'productivity'
    }

    Rescuetime.request('GET', 'anapi/data', parameters)
    .then(function(response) { console.log(response} )

The plan is to also add some helpful methods that cut to the chase.


    Rescuetime.totalProductiveTimeInSeconds()
    .then(function(res) { console.log(res) })

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks1

Languages

JavaScript

Security Score

75/100

Audited on Feb 16, 2025

No findings