Email Marketing Platform & Services
Creates a new subscriber on a specific list. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
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`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})