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.

API response different on two different servers

Highlighted
Occasional Participant

API response different on two different servers

Hi there,

 

We have connected to the API and made a simple call to retrieve the names of the email lists in our account.

 

For this we have passed an Appkey, our constant contact username and a constant contact password.

 

We have exactly the same PHP code on two different servers, yet on one server a list of our email lists is returned and on another the array is empty.

 

I have been racking my brains to figure out how this is possible.  We are sending two identical calls to your API and getting two completely different responses, the only difference being the origin of the request.  To clarify, both scripts authenticate successfully and run the same API command - but get different responses!

 

Can you let me know how this is possible?   It's been bugging me all day and I can't see any resolution to this from our end.

 

Thanks in advance,

Paul

1 REPLY 1
Trusted Contributor

Re: API response different on two different servers

Hello Paul,

 

I'd like to reach out to you via email so we can exchange some information needed to troubleshoot our end of the requests. I'll send you a private message.

 

Cheers,

Mark Coleman
Support Engineer
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