with Campaign Monitor and Caspio?
Creates a new subscriber on a specific list. See the documentation
Sends an intelligent transactional email to a specified recipient. See the documentation
Removes a subscriber from a mailing list given their email address. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
campaign_monitor: {
type: "app",
app: "campaign_monitor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.createsend.com/api/v3.3/primarycontact.json`,
headers: {
Authorization: `Bearer ${this.campaign_monitor.$auth.oauth_access_token}`,
"Content-Type": `application/json; charset=utf-8`,
},
})
},
})
The Caspio API provides a way to programmatically interact with your Caspio applications, making data management and integration tasks automated and efficient. With Pipedream, you can harness this API to build custom workflows that trigger actions in Caspio or use Caspio data to kick off processes in other services. From syncing data with external databases to processing form submissions and automating notifications, Pipedream makes it easy to connect Caspio with other apps for a seamless data flow.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
caspio: {
type: "app",
app: "caspio",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.caspio.$auth.domain}/rest/v2/applications`,
headers: {
Authorization: `Bearer ${this.caspio.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})