import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
timelink: {
type: "app",
app: "timelink",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.timelink.io/api/v1/users`,
headers: {
Authorization: `Bearer ${this.timelink.$auth.api_token}`,
},
})
},
})
timelink uses API keys for authentication. When you connect your timelink account, Pipedream securely stores the keys so you can easily authenticate to timelink APIs in both code and no-code steps.