mailerlite / mailerlite-nodejs

MIT License
32 stars 7 forks source link

subscribers.find(id) returns array of group objects instead of array of group ids as documented #36

Closed klcodanr closed 6 months ago

klcodanr commented 1 year ago

The documentation for subscribers.find(id) indicates that it returns response containing a SubscriberObject. This object indicates that the groups should be returned as string array, however when I use the SDK it actually returns an array of group objects:

image

The API does the same so I assume this is due to the ambiguity in the API docs about the structure of the groups field (esp since on create/update it's described as a list of IDs)

Mantas97 commented 6 months ago

Fix released in 1.2.2