import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
browserflow: {
type: "app",
app: "browserflow",
}
},
async run({ steps, $ }) {
const data = {
"inputVariables": {
"$example_prop": "{example_value}" //your Flow's input payload in JSON format
}
};
return await axios($, {
method: "post",
url: `https://api.browserflow.app/v1/flows/${this.browserflow.$auth.flow_id}/runs`,
headers: {
Authorization: `Bearer ${this.browserflow.$auth.api_key}`,
},
data,
})
},
})
Browserflow uses API keys for authentication. When you connect your Browserflow account, Pipedream securely stores the keys so you can easily authenticate to Browserflow APIs in both code and no-code steps.