with Hubflo and Housecall Pro?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hubflo: {
type: "app",
app: "hubflo",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.hubflo.com/api/v2/pings`,
headers: {
Authorization: `Bearer ${this.hubflo.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
housecall_pro: {
type: "app",
app: "housecall_pro",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.housecallpro.com/company`,
headers: {
"accept": `application/json`,
"authorization": `Token ${this.housecall_pro.$auth.api_key}`,
},
})
},
})