Skip to content

How to add a subscriber to a group? <based on sample code> #46

@miyakisynth

Description

@miyakisynth

Hi folks, I'm using code samples from examples on my local box. I'm trying to create a subscriber and add them to a group. Here's my code:

#Assume input_email and full_name are function variables.

MailerLite.groups
MailerLite.create_subscriber(email: input_email, name: full_name)
sub_email_details = { email: inemail }
MailerLite.create_group_subscriber(group_id, sub_email_details)

With this I'm able to successfully create a subscriber in Mailerlite, but unfortunately create_group_subscriber isn't working as expected. Is there something wrong with the way I'm calling the function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions