import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paved: {
type: "app",
app: "paved",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.paved.com/advertiser/v1/sponsorships`,
headers: {
"Authorization": `Token ${this.paved.$auth.api_key}`,
},
})
},
})
Emit new event when a sponsorship is detected on a newsletter similar to yours. See the documentation
Paved uses API keys for authentication. When you connect your Paved account, Pipedream securely stores the keys so you can easily authenticate to Paved APIs in both code and no-code steps.