with Pushinator and Rejoiner?
Emit new event when a contact is added to the specified list. See the documentation
Adds a customer to a specific list, or if the customer already exists, will update the record of that customer with the supplied data. See the documentation
Triggers the beginning of a customer journey in Rejoiner. See the documentation
Updates a customer's profile information. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushinator: {
type: "app",
app: "pushinator",
}
},
async run({steps, $}) {
const data = {
"channel_id": `${this.pushinator.$auth.channel_id}`,
"content": `Test notification content`,
}
return await axios($, {
method: "post",
url: `https://api.pushinator.com/api/v2/notifications/send`,
headers: {
Authorization: `Bearer ${this.pushinator.$auth.api_token}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rejoiner: {
type: "app",
app: "rejoiner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rj2.rejoiner.com/api/v2/${this.rejoiner.$auth.site_id}/ping/`,
headers: {
"Authorization": `Rejoiner ${this.rejoiner.$auth.api_key}`,
},
})
},
})