with V1CE and Pingback?
Add a subscriber to segmentation lists by email See the documentation
Remove a subscriber from a segmentation list by email See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
v1ce: {
type: "app",
app: "v1ce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.v1ce.co/contact/info`,
headers: {
"accept": `application/json`,
"authorization": `${this.v1ce.$auth.api_key}`,
},
params: {
contact_id: `${this.v1ce.$auth.contact_id}`,
},
})
},
})
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}`,
},
})
},
})