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}`,
},
})
},
})
Automated Welcome Email Sequence: Trigger a personalized welcome email sequence in 4Dem when a new user signs up via a web form on your site. Use Pipedream to connect the web form (e.g., Typeform, Google Forms) to 4Dem, ensuring new subscribers immediately receive your onboarding emails.
Sync New Shopify Customers to 4Dem Contacts: Automatically add new customers from Shopify to your 4Dem contact list. Each time a purchase is made, a Pipedream workflow can capture customer data from Shopify and create or update the customer's profile in 4Dem, allowing targeted follow-up campaigns.
Dynamic Content Emails Based on User Activity: Use Pipedream to monitor user activity from your app (e.g., most viewed products) and trigger customized email campaigns via 4Dem. Integrate with analytics tools like Google Analytics to fetch user behavior data and use it to send highly relevant emails through 4Dem.
Create an email sender. You will need to confirm the email address used during creation. See the documentation
4Dem uses OAuth authentication. When you connect your 4Dem account, Pipedream will open a popup window where you can sign into 4Dem and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any 4Dem API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.4dem.it/authenticate
accept: application/json
APIKey={{custom_fields.api_key}}
GET
https://api.4dem.it/refresh_token
accept: application/json