A personal analytics service that shows you how you spend your time and provides tools to help you be more productive.
Go to siteThe RescueTime API can help you obtain actionable insights from your digital usage data. With it, you can develop projects that measure and compare daily activity, measure time spent on specific tasks, and identify and track productivity trends. With this powerful API, you have the ability to optimize your productivity and understand how to best manage your digital life.
Here are some ways you can use the RescueTime API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rescuetime: {
type: "app",
app: "rescuetime",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.rescuetime.com/api/oauth/data`,
params: {
access_token: `${this.rescuetime.$auth.oauth_access_token}`,
perspective: `interval`,
restrict_kind: `productivity`,
interval: `hour`,
restrict_begin: `2018-01-01`,
restrict_end: `2018-01-31`,
format: `json`,
},
})
},
})
Emit new event each time a new daily summary report is available. See the docs here
RescueTime uses OAuth authentication. When you connect your RescueTime account, Pipedream will open a popup window where you can sign into RescueTime and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any RescueTime API.
Pipedream requests the following authorization scopes when you connect your account:
time_data
category_data
productivity_data
alert_data
highlight_data
focustime_data
GET
https://www.rescuetime.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://www.rescuetime.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}