with Factorial (API Keys) and Power Automate?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
factorial_api_keys: {
type: "app",
app: "factorial_api_keys",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.factorialhr.com/api/2025-10-01/resources/api_public/credentials`,
headers: {
"x-api-key": `${this.factorial_api_keys.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
power_automate: {
type: "app",
app: "power_automate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01`,
headers: {
Authorization: `Bearer ${this.power_automate.$auth.oauth_access_token}`,
},
})
},
})