with Power Automate and Api2Convert?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api2convert: {
type: "app",
app: "api2convert",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.api2convert.com/v2/contracts`,
headers: {
"x-oc-api-key": `${this.api2convert.$auth.api_key}`,
},
})
},
})