Skip to content

Introduce list functionality#41

Open
legovaer wants to merge 3 commits intoMarketoMA:8.x-2.xfrom
thereference:8.x-2.x--add-list-support
Open

Introduce list functionality#41
legovaer wants to merge 3 commits intoMarketoMA:8.x-2.xfrom
thereference:8.x-2.x--add-list-support

Conversation

@legovaer
Copy link

I'm currently working on a module called marketo_subscribe as we needed functionality for users to be able to subscribe to a list in Marketo with only their e-mail address (no body field).

As the functionality for Lists in Marketo was missing in this module, I created two new public methods to the API Client:

  • addLeadsToList() => Adds a given array of Lead objects to a list using the addLeadsToList() method on the base client
  • addLeadToListByEmail() => Creates a new lead for the given e-mail address and then calls addLeadsToList().

I've also added unit tests for both the functions.

@chx
Copy link

chx commented Jun 13, 2020

This has been committed on drupal.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants