Retention Marketing Software for Ecommerce
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
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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})