Error 400 when craeting a new user.

Highlighted
Frequent Visitor

Error 400 when craeting a new user.

 Hi everyone, I'm trying to add new contacts, using the ctct php library, but I keep getting an error response 400.

 

this is my xml

 

<entry xmlns="http://www.w3.org/2005/Atom">
  <title>TitleNode</title>
  <updated>2012-10-01T03:18:51+01:00</updated>
  <author>
    <name>CTCT Samples</name>
  </author>
  <id>urn:uuid:E8553C09F4xcvxCCC53F481214230867087</id>
  <summary type="text">Customer document</summary>
  <content type="application/vnd.ctct+xml">
    <Contact xmlns="http://ws.constantcontact.com/ns/1.0/">
      <EmailAddress>marcelo@origoni.com.ar</EmailAddress>
      <FirstName>Marcelo</FirstName>
      <LastName>Origoni</LastName>
      <MiddleName></MiddleName>
      <CompanyName>Company name</CompanyName>
      <JobTitle></JobTitle>
      <OptInSource>ACTION_BY_CONTACT</OptInSource>
      <HomePhone>Phone</HomePhone>
      <WorkPhone></WorkPhone>
      <Addr1></Addr1>
      <Addr2></Addr2>
      <Addr3></Addr3>
      <City>City</City>
      <StateCode>35</StateCode>
      <StateName></StateName>
      <CountryCode></CountryCode>
      <PostalCode>Zip</PostalCode>
      <SubPostalCode></SubPostalCode>
      <Note></Note>
      <EmailType></EmailType>
      <CustomField20></CustomField20>
      <CustomField1>31293112</CustomField1>
      <CustomField17></CustomField17>
      <CustomField2>15</CustomField2>
      <CustomField4>Street address</CustomField4>
      <CustomField18></CustomField18>
      <CustomField6>First Name</CustomField6>
      <CustomField7>Last Name</CustomField7>
      <CustomField3>Title</CustomField3>
      <CustomField9>Company Name</CustomField9>
      <CustomField10>Street Address</CustomField10>
      <CustomField11>City</CustomField11>
      <CustomField16></CustomField16>
      <CustomField13>Zip</CustomField13>
      <CustomField14>Email</CustomField14>
      <CustomField15>Phone</CustomField15>
      <CustomField12>Real Estate License #</CustomField12>
      <CustomField8></CustomField8>
      <CustomField5># of agents in your office</CustomField5>
      <CustomField19></CustomField19>
      <ContactLists/>
    </Contact>
  </content>
</entry>

  Do I need to change anything in the php library? the form was working fine, until I changed my password.

 

Thanks in advance

 

2 REPLIES 2
Highlighted
CTCT Employee

Re: Error 400 when craeting a new user.

Hi,

 

If you changed your password and were using basic authentication, you would need to change your password in the config.php file in the PHP wrapper.  Let me know if that doesn't work, and I will go through your XML line by line and point out any issues.

 

It does look like you don't have any lists specified in your XML (which is required), and there might be some other problems with the XML as well.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Frequent Visitor

Re: Error 400 when craeting a new user.

 Hi, I did change the password and API key in the config file.

 

 I'll check the list, and see if that fixes the issue.

 

Thanks

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured