with 4Dem and HelpDesk?
Create an email sender. You will need to confirm the email address used during creation. See the documentation
The 4Dem API provides robust tools for email marketing, allowing users to manage contacts, send emails, and track campaign effectiveness. Leveraging this API within Pipedream enables users to automate and integrate these email marketing capabilities with other services, enhancing productivity and personalization. Use cases range from syncing subscriber data across platforms to triggering custom email campaigns based on user behavior.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_4dem: {
type: "app",
app: "_4dem",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.4dem.it/senders/email`,
headers: {
Authorization: `Bearer ${this._4dem.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpdesk: {
type: "app",
app: "helpdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.helpdesk.com/v1/agents`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.helpdesk.$auth.account_id}`,
password: `${this.helpdesk.$auth.access_token}`,
},
})
},
})