with Postalytics and ServiceNow?
Emit new event when a new campaign event occurs.
The Postalytics API lets you automate direct mail marketing campaigns, manage contacts, and track results. By integrating Postalytics with Pipedream, you can build serverless workflows that leverage your marketing stack, sync data across platforms, and personalize your outreach efforts. You can trigger direct mail pieces based on customer behavior, update your CRM with mailing results, or create custom analytics dashboards.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postalytics: {
type: "app",
app: "postalytics",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.postalytics.com/api/v1/contacts`,
auth: {
username: `${this.postalytics.$auth.api_key}`,
password: ``,
},
})
},
})
The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow: {
type: "app",
app: "servicenow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow.$auth.instance_name}.service-now.com/api/now/table/incident`,
headers: {
Authorization: `Bearer ${this.servicenow.$auth.oauth_access_token}`,
},
})
},
})