Instantly connect your business with millions of paying customers and the top performing affiliates.
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jvzoo: {
type: "app",
app: "jvzoo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.jvzoo.com/v2.0`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.jvzoo.$auth.api_key}`,
password: `x`,
},
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS