import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brandblast: {
type: "app",
app: "brandblast",
}
},
async run({steps, $}) {
const data = {
"user_email": `${this.brandblast.$auth.email}`,
"user_password": `securePassword123!`,
"should_reset_password": `false`,
}
return await axios($, {
method: "post",
url: `https://dashboard.brandblast.ai/api/v1/createUser`,
headers: {
"x-api-key": `${this.brandblast.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
Brandblast uses API keys for authentication. When you connect your Brandblast account, Pipedream securely stores the keys so you can easily authenticate to Brandblast APIs in both code and no-code steps.