Topic-icon How to add Sendy integration to any extension

Active Subscriptions:

None
Hi support team,

In your sendy product page, you mentioned that "the user can quickly add Sendy integration to any extension. With one line of code you can subscribe or unsubscribe users to any list." Can you give more instructions on this? I have no clue how to do it. Thanks!
File Attachment:
The topic has been locked.
Support Specialist
7 years 5 months ago #59996 by alzander
The first thing you need to do is get Sendy working with that module. That will make sure all the lists are setup properly.

Then, if you want to add a user to a list when they are registering through another extension, you need to call the following PHP code:
$sendy = Sendy::getInstance();
$return = $sendy->subscribeUser($email, $listId);
I hope that helps, but if you're looking for something else, please let me know.

Thanks,
Alex
The topic has been locked.