The Newsletter API provides a way to integrate and automate email campaign management directly within Pipedream. With this API, you can manage subscribers, send out newsletters, and analyze the performance of your email campaigns. It's a powerful tool for website owners, bloggers, and marketers who want to engage their audience through regular email updates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
newsletter: {
type: "app",
app: "newsletter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.newsletter.$auth.url}/wp-json/newsletter/v2/subscribers`,
auth: {
username: `${this.newsletter.$auth.client_key}`,
password: `${this.newsletter.$auth.client_secret}`,
},
params: {
page: `{your_page}`,
per_page: `{your_per_page}`,
},
})
},
})
Automated Subscriber Sync: Automatically add new subscribers from other platforms to your Newsletter mailing list by connecting the Newsletter API with Pipedream's trigger for new rows in a Google Sheets spreadsheet.
Scheduled Newsletter Campaigns: Use Pipedream’s scheduled triggers to send out newsletters at predetermined times. Combine this with dynamic content from your website's RSS feed to keep the newsletters fresh and relevant.
Performance Reporting to Slack: After sending out a newsletter, use Pipedream to call the Newsletter API for performance data and construct a report. Then, send this report to a Slack channel where your team can quickly analyze the campaign's effectiveness.
Newsletter uses API keys for authentication. When you connect your Newsletter account, Pipedream securely stores the keys so you can easily authenticate to Newsletter APIs in both code and no-code steps.
To retrieve your API keys,
The url field below is your WordPress site's domain where your Newsletter plug in is installed.
For example, if you have a Wordpress.org site hosted at https://example.com
, then enter example.com
in the url field below.