The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

REST authentication

SOLVED
Go to solution
Highlighted
Developer

REST authentication

I have code (in PHP) that successfully authenticates with Constant Contact using the REST API. I can submit contacts, retrieve lists, add a list, etc. However, the authentication fails if the Constant Contact user name contains a space in it. I have tried using base64_encode and urlencode but the authentication still fails. How can I authenticate a user when there is a space in the user name?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Employee

Re: REST authentication

Hello,

 

Currently we do not have the ability to use our API with Constant Contact customers who have a space in their usernames.  We no longer allow customers in our system to have spaces in their names; however, we did allow useranames with spaces that were previously created to keep the username, but the ability to use the API is not going to work unless you change the username to a username without a space.

 

If you have any questions please let me know.

 

Regards,

Benjamin Soder
NOC Analyst
Constant Contact

View solution in original post

2 REPLIES 2
Highlighted
Developer

Re: REST authentication

Also, I am using the basic authentication method.

Highlighted
Employee

Re: REST authentication

Hello,

 

Currently we do not have the ability to use our API with Constant Contact customers who have a space in their usernames.  We no longer allow customers in our system to have spaces in their names; however, we did allow useranames with spaces that were previously created to keep the username, but the ability to use the API is not going to work unless you change the username to a username without a space.

 

If you have any questions please let me know.

 

Regards,

Benjamin Soder
NOC Analyst
Constant Contact

View solution in original post

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured