with Kudosity and Bash?
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: {
kudosity: {
type: "app",
app: "kudosity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.transmitsms.com/get-balance.json`,
auth: {
username: `${this.kudosity.$auth.api_key}`,
password: `${this.kudosity.$auth.api_secret}`,
},
})
},
})
# $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