import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brandfetch: {
type: "app",
app: "brandfetch",
}
},
async run({steps, $}) {
const data = {
"transactionLabel": `PIPEDREAM INC SAN FRANCISCO CA`,
"countryCode": `US`,
}
return await axios($, {
method: "post",
url: `https://api.brandfetch.io/v2/brands/transaction`,
headers: {
Authorization: `Bearer ${this.brandfetch.$auth.api_key}`,
},
data,
})
},
})
Brandfetch uses API keys for authentication. When you connect your Brandfetch account, Pipedream securely stores the keys so you can easily authenticate to Brandfetch APIs in both code and no-code steps.