with Toggl Track and Notion (API Key)?
Emit new event when a time entry is started. See docs here
Emit new event when a time entry is created. See docs here
Emit new event when a new comment is created in a page or block. See the documentation
Emit new event when a time entry is updated. See docs here
Emit new event when a database is created. See the documentation
Append new and/or existing blocks to the specified parent. See the documentation
Create a comment in a page or existing discussion thread. See the documentation
Get the time entry that is running now. [See docs here]https://developers.track.toggl.com/docs/api/time_entries#get-get-current-time-entry)
Toggl Track is a time tracking API that lets you start, stop, and manage timers and time entries, as well as manage projects, clients, and tasks associated with time records. With the Toggl Track API on Pipedream, you can automate time tracking activities, synchronize data across platforms, and generate insights from time tracking data to improve productivity and project management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
toggl: {
type: "app",
app: "toggl",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.track.toggl.com/api/v9/me`,
auth: {
username: `${this.toggl.$auth.api_token}`,
password: `api_token`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notion_api_key: {
type: "app",
app: "notion_api_key",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.notion.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.notion_api_key.$auth.api_secret}`,
"Notion-Version": `2021-08-16`,
},
})
},
})