import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bright_data: {
type: "app",
app: "bright_data",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.brightdata.com/customer/balance`,
headers: {
Authorization: `Bearer ${this.bright_data.$auth.api_key}`,
},
})
},
})
Bright Data uses API keys for authentication. When you connect your Bright Data account, Pipedream securely stores the keys so you can easily authenticate to Bright Data APIs in both code and no-code steps.