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`,
},
})
},
})
Hubflo uses API keys for authentication. When you connect your Hubflo account, Pipedream securely stores the keys so you can easily authenticate to Hubflo APIs in both code and no-code steps.