import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
configcat: {
type: "app",
app: "configcat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.configcat.com/v1/products`,
headers: {
"accept": `application/json`,
},
auth: {
username: `${this.configcat.$auth.auth_username}`,
password: `${this.configcat.$auth.auth_password}`,
},
})
},
})
ConfigCat uses API keys for authentication. When you connect your ConfigCat account, Pipedream securely stores the keys so you can easily authenticate to ConfigCat APIs in both code and no-code steps.