Skip to content

darkfadr/node-rescuetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RescueTime API

Build Status

Promise based API library that exposes an abstraction over the RescueTime Analytics and Summary API.

Usage

import rescuetime from 'node-rescuetime';

const rescue = rescuetime('API_KEY');

rescue.analytics({
	perspective: 'interval',
	restrict_kind: 'productivity'
})
.then(d => console.log(d))
.catch(err => console.log(err));

API

At it's core node-golfnow uses axios. It currently exposes abstactions around the [analytics, summaries] resouces of the API, however any missing or new enpoint can be implemented via the the extension get and post methods

Custom enpoints

The sdk exposes the get and post methods for customized integration with the RescueTime API

rescue.get(some_rescuetime_url)
	.then(res => console.log(res.data));
	.catch(err => console.log(err.response.data));


rescue.post(url, payload)
	.then(res => console.log(res.data));
	.catch(err => console.log(err.response.data));

Constributors

Ashley Narcisse ashlay49@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors