cancel
Showing results for 
Search instead for 
Did you mean: 

Can not login to api

SOLVED
Occasional Contributor

Can not login to api

My client has a login for Constant Contact.  However, it does not work on api.constantcontact.com.  Does anyone know how to login or create a login for the api?

4 REPLIES 4
CTCT Employee

Re: Can not login to api

Hello,

 

In order to get started using our API you first need to get an API key by clicking here and registering for one.  Once you have an API key you would then have access to the API.  I would suggest checking out our documentation and also our sample code.

 

If you have any questions about getting started with your integration please let me know!

 

Regards,

Benjamin Soder
NOC Analyst
Constant Contact
Occasional Contributor

Re: Can not login to api

Thank you.  I had already found get started, after having found ctctwrapper.

 

However, I'm trying to do contactCreate which is failing for me.  I really need to see some documentation on what is absolutely required to write a record.

 

searchByEmail is working for me.

 

So, there seems to be no problem for me to get data but putting it is posing a problem.

Occasional Contributor

Re: Can not login to api

    $contact->setLink($item->link->Attributes()->href);
    $contact->setId($item->id);
    $contact->setEmailAddress($item->content->Contact->EmailAddress);
    $contact->setFullName($item->content->Contact->Name);
    $contact->setStatus($item->content->Contact->Status);
    $contact->setEmailType($item->Contact->EmailType);

 

is what comes back on the get.

 

But for put there are tons of fields.  I don't know what is required for a post to the api.

Tags (1)
Highlighted
CTCT Employee

Re: Can not login to api

Hello,

 

Please see this post.

 

Sincerely,

 

Benjamin Soder
NOC Analyst
Constant Contact