I am wanting to use the constant contact REST API to add the ability for users to add them selves to a contact list though a website, as well give them the ability to view previous emails that have been sent out. I have downloaded the PHP samples package, changed the username, password, and api key. But when i deploy this to my server, or try to run it locally I seem to be getting some errors, that I can not figure out. The errors the the same on both environments.
Warning: Invalid argument supplied for foreach() in /home/michaelsvendsen/clients.thesven.com/test/cc_class.php on line 127
Warning: Invalid argument supplied for foreach() in /home/michaelsvendsen/clients.thesven.com/test/cc_class.php on line 149
I have looked though the class, and tried printing out some of the values and to me it seems like the value being returned from the simplexml_load_string method is empty. I am using the same user name and password that I used to create the API key, so I am thinking that these must be correct. Is there something else that must be enabled with the account in order for API access? This is my first time using the constant contact API so any help to point me in the right direction would be greatly appreciated.
... View more