import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pingback: {
type: "app",
app: "pingback",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://connect.pingback.com/v1/subscriber/${this.pingback.$auth.email}`,
headers: {
"x-api-key": `${this.pingback.$auth.api_key}`,
},
})
},
})
Add a subscriber to segmentation lists by email See the documentation
Remove a subscriber from a segmentation list by email See the documentation
Pingback uses API keys for authentication. When you connect your Pingback account, Pipedream securely stores the keys so you can easily authenticate to Pingback APIs in both code and no-code steps.