You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to add a new subscriber using go and gin-gonic, but I keep getting an error
"error": "POST https://connect.mailerlite.com/api/subscribers: 422 The groups field must be an array. map[groups:[The groups field must be an array.]]",
If you need to add groups like Im trying to do now, this won't work because the api is expecting a list of strings instead of a list of mailerlite.Group{}. Probably a new struct should be created for the creation of subscribers
you can now submit this without groups, im trying to think of the best way to handle subscriber groups 🤔 i would hate to have to introduce a new type just for this NewSubscriber for example
Hello, I am trying to add a new subscriber using go and gin-gonic, but I keep getting an error
"error": "POST https://connect.mailerlite.com/api/subscribers: 422 The groups field must be an array. map[groups:[The groups field must be an array.]]",
Here is my code
The text was updated successfully, but these errors were encountered: