← Mailerlite

Update Subscriber with Mailerlite API

Pipedream makes it easy to connect APIs for Mailerlite and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Update Subscriber with the Mailerlite API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Update Subscriber with the Mailerlite API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Update Subscriber action
    1. Connect your Mailerlite account
    2. Select a Subscriber
    3. Optional- Select a Type
    4. Optional- Select one or more Fields
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Update Subscriber with Mailerlite API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Mailerlite
 
Try it
Update Subscriber with Mailerlite API on New Message from Discord API
Discord + Mailerlite
 
Try it
Update Subscriber with Mailerlite API on New Message In Channels from Slack API
Slack + Mailerlite
 
Try it
Update Subscriber with Mailerlite API on New Message in Channel from Discord Bot API
Discord Bot + Mailerlite
 
Try it
Update Subscriber with Mailerlite API on New Submission from Typeform API
Typeform + Mailerlite
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Update Subscriber on Mailerlite
Description:Updates single active subscriber. [See docs](https://developers.mailerlite.com/reference/update-subscriber)
Version:0.0.1
Key:mailerlite-update-subscriber

Code

import mailerlite from "../../mailerlite.app.mjs";

export default {
  key: "mailerlite-update-subscriber",
  name: "Update Subscriber",
  description: "Updates single active subscriber. [See docs](https://developers.mailerlite.com/reference/update-subscriber)",
  version: "0.0.1",
  type: "action",
  props: {
    mailerlite,
    subscriber: {
      propDefinition: [
        mailerlite,
        "subscriber",
      ],
    },
    type: {
      propDefinition: [
        mailerlite,
        "type",
        () => ({
          type: "update",
        }),
      ],
    },
    fields: {
      propDefinition: [
        mailerlite,
        "fields",
      ],
      reloadProps: true,
      withLabel: true,
    },
  },
  async additionalProps() {
    const props = {};
    for (const field of this.fields) {
      props[field.value] = {
        type: "string",
        label: field.label,
        description: `${field.label} value`,
      };
    }
    return props;
  },
  async run({ $ }) {
    const fields = {};
    for (const field of this.fields) {
      fields[field.value] = this[field.value];
    }
    const data = {
      type: this.type,
      fields,
    };
    const resp = await this.mailerlite.updateSubscriber(data, this.subscriber);
    $.export("$summary", "Successfully updated subscriber");
    return resp;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
MailerlitemailerliteappThis component uses the Mailerlite app.
SubscribersubscriberstringSelect a value from the drop down menu.
TypetypestringSelect a value from the drop down menu.
Fieldsfieldsstring[]Select a value from the drop down menu.

Authentication

Mailerlite uses API keys for authentication. When you connect your Mailerlite account, Pipedream securely stores the keys so you can easily authenticate to Mailerlite APIs in both code and no-code steps.

Get your Mailerlite developer API key here

About Mailerlite

Email marketing software

More Ways to Use Mailerlite

Actions

Create Subscriber with the Mailerlite API

Create a new subscriber. See docs

 
Try it
List Subscribers with the Mailerlite API

Lists all subscribers in a group. See the docs here

 
Try it
Remove Subscriber From Group with the Mailerlite API

Removes single subscriber from specified group. See the docs here

 
Try it
Subscribe to MailerLite Group with the Mailerlite API

Add a subscriber to a group. See the docs here

 
Try it