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 provides access to detailed data about how you spend your time on digital devices, including time spent on apps and websites. With this API on Pipedream, you can create custom workflows that trigger actions based on your productivity data. For instance, you can set up alerts for excessive social media usage or automate weekly productivity reports. Pipedream's platform enables these automations by connecting RescueTime to hundreds of other apps, allowing for intricate workflows that can enhance personal productivity and time management.
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`,
},
})
},
})
Daily Productivity Report to Slack: Send a summary of your daily activity and productivity score from RescueTime to a Slack channel. This workflow could help teams stay accountable and offer insights into work patterns.
Focused Work Mode Automation: Trigger a 'Do Not Disturb' mode on communication apps like Slack or your phone when you enter a focused work session in RescueTime. This ensures you remain undisturbed during periods of high productivity.
Time Management Dashboard: Aggregate your RescueTime data with calendar events from Google Calendar and emails from Gmail to create a comprehensive time management dashboard. This can help you visualize where your time is going and adjust accordingly.
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}}