← AWeber + Go integrations

Run Go Code with Go API on Subscriber Added from AWeber API

Pipedream makes it easy to connect APIs for Go, AWeber and 1000+ other apps remarkably fast.

Trigger workflow on
Subscriber Added from the AWeber API
Next, do this
Run Go Code with the Go 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

This integration creates a workflow with a AWeber trigger and Go action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Subscriber Added trigger
    1. Connect your AWeber account
    2. Configure Polling schedule
    3. Select a Account ID
  3. Configure the Run Go Code action
    1. Connect your Go account
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are 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.

Trigger

Description:Emit new event when a subscriber in a list is added. [See the docs here](https://api.aweber.com/#tag/Subscribers/paths/~1accounts~1{accountId}~1lists~1{listId}~1subscribers/get)
Version:0.0.2
Key:aweber-subscriber-added

AWeber Overview

The AWeber API enables you to interact with your AWeber account data and
perform actions, such as creating and updating subscribers, retrieving campaign
statistics, and managing account preferences. You can use the API to build
applications that integrate with AWeber, such as a custom subscriber management
system or a campaign reporting tool.

Trigger Code

import constants from "../../common/constants.mjs";
import common from "../common.mjs";

export default {
  ...common,
  key: "aweber-subscriber-added",
  name: "Subscriber Added",
  description: "Emit new event when a subscriber in a list is added. [See the docs here](https://api.aweber.com/#tag/Subscribers/paths/~1accounts~1{accountId}~1lists~1{listId}~1subscribers/get)",
  type: "source",
  version: "0.0.2",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getResourceFn() {
      return this.aweberApp.getSubscribersForAccount;
    },
    getResourceFnArgs(args) {
      return {
        ...args,
        accountId: this.accountId,
        params: {
          [constants.PAGINATION.OPTIONS_PROP]: "findSubscribers",
        },
      };
    },
    getSummary(resource) {
      return `Subscriber added ${resource.email}`;
    },
  },
};

Trigger 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
AWeberaweberAppappThis component uses the AWeber app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
Polling scheduletimer$.interface.timer

How often to poll the AWeber API

Account IDaccountIdintegerSelect a value from the drop down menu.

Trigger Authentication

AWeber uses OAuth authentication. When you connect your AWeber account, Pipedream will open a popup window where you can sign into AWeber and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any AWeber API.

Pipedream requests the following authorization scopes when you connect your account:

account.readlist.readlist.writesubscriber.readsubscriber.writesubscriber.read-extendedemail.reademail.write

About AWeber

Powerfully-Simple Email Marketing

Action

Description:Run any Go code and use any Go package available with a simple import. Refer to the [Pipedream Go docs](https://pipedream.com/docs/code/go) to learn more.
Version:0.0.2
Key:go-run-go-code

Action Code

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

export default {
  name: "Run Go Code",
  version: "0.0.2",
  key: "go-run-go-code",
  description: "Run any Go code and use any Go package available with a simple import. Refer to the [Pipedream Go docs](https://pipedream.com/docs/code/go) to learn more.",
  props: {
    go,
  },
  type: "action",
  methods: {},
  async run({ $ }) {
    // Placeholder action for Go code app
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
GogoappThis component uses the Go app.

Action Authentication

The Go API does not require authentication.

About Go

Anything you can do in Go, you can do in a Pipedream Workflow. You can use any of Go packages available with a simple import.

More Ways to Connect Go + AWeber

Subscriber Added from the AWeber API

Emit new event when a subscriber in a list is added. See the docs here

 
Try it
Add Subscriber with the AWeber API

Add subscribers to the specified account and list. See the docs here.

 
Try it
Get Accounts with the AWeber API

Get a paginated collection of accounts. See the docs here.

 
Try it
Get Lists with the AWeber API

Get a paginated collection of subscriber lists. See the docs here.

 
Try it
Get Subscribers with the AWeber API

Get a paginated collection of subscribers under the specified account and list. See the docs here.

 
Try it
Run Go Code with the Go API

Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.

 
Try it