Can not login to api

SOLVED
Highlighted
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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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.

View solution in original post

Tags (1)
4 REPLIES 4
Highlighted
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
Highlighted
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.

Highlighted
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.

View solution in original post

Tags (1)
Highlighted
Employee

Re: Can not login to api

Hello,

 

Please see this post.

 

Sincerely,

 

Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

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

Visit Page

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured