I'm working on an integration with an ecommerce module I help maintain and I seem to be getting the status code 400 with a subscriber issue. I've gone through the forums for a while and it usually seems to be something fairly simple. I've been going at this for a while now and can't seem to find what I'm doing wrong. The code I'm working with can be found here. I know the api key and list ID are being set correctly.
I'm using tag 4.0.2 for the php wrapper. The data for the api is coming from an XML feed and I've mirrored the parsing from the main module. I'm working on figuring out if the email isn't parsing properly, but we generate user accounts based on the parsed email, so I'm pretty sure the email address is fine. Any tips?