Dear Andrew, Thanks for your reply. It's not only when updating, but also when trying to create a new contact using a new email id, city, state and other user details, the same error shows up. Most strange thing is the same piece of code was working until this problem popped up and as a matter of fact, I already registered many email addresses as part of my testing process with the same peace of code. For your reference I am attaching my php file which I downloaded one month ago from https://github.com/constantcontact/php-sdk/blob/master/examples/addOrUpdateContact.php along with all library and just added a few fields like city, state, home_phone, company etc. I am kind of lost and clueless about the issue, please help. Can you please check my php file? Thank you Kind Regards
... View more
Hi All, Until recently below code was working fine. When an email already exists, the code tries to update other details along with contact address, the code snippet as follows: $contact = $response->results; $contact->addList('12'); $contact->first_name = 'The Value'; $contact->last_name = 'The Value'; $contact->company_name = 'The Value'; $contact->home_phone = 'The Value'; $contact->addresses = array('city'=>'The Value', 'line3'=>'The Value'); $returnContact = $cc->updateContact(ACCESS_TOKEN, $contact); But now, it's giving following error: Array (  => Array ( [error_key] => http.status.bad_request [error_message] => Bad request. ) ) If I comment out the line $contact->addresses = array('city'=>'The Value', 'line3'=>'The Value'); from above code snippet, everything works fine. But I need to update the city and line3 of the existing user's contact address. How can I achieve this? Can someone please help me?
... View more