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?