with DitLead and iContact?
Emit new events according to the selected event types. See the documentation
Emit new event when a contact is subscribed to a list.
Creates and dispatches a new message using custom HTML. See the documentation
Creates a new contact within the iContact account. See the documentation
Adds a contact to a specific list within iContact. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ditlead: {
type: "app",
app: "ditlead",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.ditlead.com/v1/apikey/validate`,
headers: {
Authorization: `Bearer ${this.ditlead.$auth.api_key}`,
},
})
},
})
The iContact API provides a programmable way to manage email marketing campaigns, contacts, lists, and messages within iContact's service. Through this API, you can automate the creation and sending of emails, manage subscribers, and track the performance of your campaigns. When used on Pipedream, the iContact API allows you to create serverless workflows that integrate with other apps and services, trigger actions based on various conditions, and automate repetitive tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
icontact: {
type: "app",
app: "icontact",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.icontact.com/icp/a/${this.icontact.$auth.account_id}/c/${this.icontact.$auth.client_folder_id}`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
"api-version": `2.2`,
"api-appid": `${this.icontact.$auth.api_app_id}`,
"api-username": `${this.icontact.$auth.api_username}`,
"api-password": `${this.icontact.$auth.api_password}`,
},
})
},
})