mailchimp-api icon indicating copy to clipboard operation
mailchimp-api copied to clipboard

Couldn't find 'errors' array into Mailchimp class

Open teolaz opened this issue 7 years ago • 4 comments

Hi there, i just realized that inspecting your class you arent' checking the errors json encoded array from the response body of Mailchimp servers, if a 4xx error occourred, it should be interesting to have a getErrorsArray method on class to parse each error... Do you think that will be possible? Clearly, the last_error variable is populated with the status and detail of the formattedResponse, but that seems not to be enough for complete controlling the errors....

image

Thanks

teolaz avatar Mar 19 '18 09:03 teolaz

Yes, I'd be interested to see a PR for that.

drewm avatar Mar 19 '18 09:03 drewm

@drewm no time to waiste ah? :D will see if i can help...

teolaz avatar Mar 19 '18 09:03 teolaz

@drewm please check the PR here #236

teolaz avatar Mar 19 '18 10:03 teolaz

Would be great if this could get merged

edalzell avatar Sep 06 '19 23:09 edalzell