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/v8/me`,
auth: {
username: `${this.toggl.$auth.api_token}`,
password: `api_token`,
},
})
},
})
Toggl Track uses API keys for authentication. When you connect your Toggl Track account, Pipedream securely stores the keys so you can easily authenticate to Toggl Track APIs in both code and no-code steps.
Get your API token at the bottom of your profile page