cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

About the correction in the wrapper file

Occasional Advisor

About the correction in the wrapper file

Hi,

 

I am not sure if this is a fix or not. But I was just trying to fetch the Optout of a campaigns and I just found that it's giving fatal error.

So i debug the code and found that in wrapper file constantcontact.php line number 335 approx.

return $CampaignsCollection->getCampaignEvents($url, 'OptOutEvent');

replace this with 

return $CampaignsCollection->getCampaignEvents($url, 'OptoutEvent');

 

in event type "out" must be in small case.

Hope this will help some of the developers.

2 REPLIES 2
CTCT Employee

Re: About the correction in the wrapper file

Hi,

 

Thank you for bringing this to our attention!  We will fix it in the wrapper shortly.

 

Thank you for contacting Constant Contact, and have a wonderful day!

 

Best Regards,

Shannon W.

API Support Specialist

CTCT Employee

Re: About the correction in the wrapper file

Hi,

 

I looked into this more deeply, and some of our PHP repositories on GitHub show OptOutEvent and some have OptoutEvent, so that string is not consistent across our wrappers, based on which repository you download (we have a main wrapper, an email campaign example, and a contact example, among others).  The casing of the string isn't very important, since it is just an arbitrary string and not a variable being called from somewhere else (that string is only declared/used once in the wrapper).

 

However, if you tried to use part of one wrapper and part of another, because the case does change, you could run into problems.  This also would matter when parsing your results (your case would just need to match).  I will look into making the wrappers more consistent; thanks again for letting us know about that.

 

 

Best Regards,

Shannon W.

API Support Specialist