Hey there!
I'm currently using a PHP version of the API (justphpsoftware.com) and appear to be having a problem. Using the PHP script, I managed to create contacts. Everything works! I can even delete the contacts; it works... partially. On the CC site, the contacts were deleted, but on MY site, they're still showing up! Now, when I try to re-add one of the deleted contacts on the CC side, I get the following error:
All email addresses have been added, except for those listed in the Addresses to Add box. Please correct any invalid email addresses and click on Submit Data to try again.
And in the box:
[[EMAILADDRESS]] (opted-out subscriber)
Hi, The error means nothing
Hi,
The error means nothing to me so presume that is something your custom application has added?
Can you tell me exactly what you mean when you say the contacts are still showing up, how are you viewing the contacts?
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/
Screenshots
http://img26.imageshack.us/i/67432502.png/
http://img97.imageshack.us/i/95422801.png/
Look at those images. The first one shows the Constant Contact control panel, with me navigating to the only list I have. The second image shows what my PHP script is retrieving; I made those contacts, but then I deleted them! They shouldn't be there. I'm guessing there's some weirdness going on with something I did on the Constant Contact control panel, but I can't be sure. I'm guessing I never completely deleted the contacts, but how is that possible? Argh!
Thanks! This is about as much information as I can give you. My PHP script isn't finished, so there are obviously some errors in it, but why would it be retrieving something I got rid of? HOW would it be?
Hi, I presume your using the
Hi,
I presume your using the get_contacts.php script?
The problem is that script grabs all your subscribers both subscribed and unsubscribed, if you only want active users you should use the get_list_members.php script and get the subscribers from a certain contact list.
Alternatively you can use get_contacts.php but will need to check the status of the user is ACTIVE.
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/
Okay...
Hey there. That seems like it can fix my problem; however, how do you check if the user is active? I can't find a function for that. Thanks!
You will need to call the
You will need to call the get_contact() method on each user to get the "Status" field.
Please get in touch via my website if you need further help.
Best Regards,
James
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/